Today schema introspection is Postgres-only (pg_catalog queries in schema.py). Introduce a thin adapter abstraction so MySQL and SQLite can be added. The retrieval/prompt/safety layers are DB-agnostic already; this is mostly the introspection + dialect bits.
Likely larger than a one-liner — open with a design sketch. Postgres stays the reference.
Today schema introspection is Postgres-only (
pg_catalogqueries inschema.py). Introduce a thin adapter abstraction so MySQL and SQLite can be added. The retrieval/prompt/safety layers are DB-agnostic already; this is mostly the introspection + dialect bits.Likely larger than a one-liner — open with a design sketch. Postgres stays the reference.