Get Table Constraints
get_table_constraintsRetrieve primary keys, foreign keys, and unique constraints for a table. Uses the default schema if not specified.
Instructions
Get all constraints (primary keys, foreign keys, unique constraints) for a specific table. Uses the system's default schema if not provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name to get constraints for | |
| schema | No | Schema (library) name containing the table. Uses the system's default schema if not provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| count | No | ||
| error | No | ||
| success | Yes |