get_table_relationships
Identify foreign key relationships for a specified table in PostgreSQL, enabling users to understand and map database schema dependencies efficiently.
Instructions
Get foreign key relationships for a table
Input Schema
Name | Required | Description | Default |
---|---|---|---|
schema | No | Schema name (default: public) | public |
table_name | Yes | Name of the table |
Input Schema (JSON Schema)
{
"properties": {
"schema": {
"default": "public",
"description": "Schema name (default: public)",
"type": "string"
},
"table_name": {
"description": "Name of the table",
"type": "string"
}
},
"required": [
"table_name"
],
"type": "object"
}