Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hshahconsulting committed Oct 29, 2024
1 parent e7e9ec4 commit 2bf5200
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/resources/sql_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,12 @@ resource "databricks_sql_table" "thing" {
comment = "name of thing"
}
key_constraint {
name = "id_pk"
primary_key = "id"
rely = "true"
}
key_constraint {
name = "external_id_fk"
referenced_key = "external_id"
referenced_catalog = "bronze"
referenced_schema = "biz"
Expand Down Expand Up @@ -236,10 +238,12 @@ Currently, changing the column definitions for a table will require dropping and
### `key_constraint` configuration block

For Primary Keys
* `name` - Constraint name.
* `primary_key` - Column that will get the constraint.
* `rely` - (Optional) Whether utilizing rely optimization. Can be `true` or `false`. Default to `false`.

For Foreign Keys
* `name` - Constraint name.
* `referenced_key` - Column that will get the constraint.
* `referenced_catalog` - Catalog name of the remote table.
* `referenced_schema` - Schema name of the remote table.
Expand Down

0 comments on commit 2bf5200

Please sign in to comment.