get_db_schema
Retrieve a condensed SQL migration snapshot including tables, columns, types, constraints, indexes, and row-level security policies. Filter by table names or project.
Instructions
Condensed SQL-migration snapshot: tables (cols, types, nullability, defaults), PKs, FKs, indexes, RLS policies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| migrations_dir | No | Relative or absolute path to the migrations directory (default: auto-detect). | |
| dialect | No | SQL dialect -- currently only 'postgres' is implemented. | |
| tables | No | Optional filter: only return these table names. | |
| project | No | Project name/path (default: active). |