schema_foreign_keys
List foreign key relationships for a MySQL database or specific table, with options to filter by direction (incoming, outgoing, or all).
Instructions
List foreign key relationships for a database or specific table (incoming + outgoing)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Optional: filter by table name | |
| database | Yes | Database name | |
| direction | No | When table is set: 'all' (default), 'incoming', or 'outgoing' |