What problem does it solve?
It helps you answer database questions (rows, tables, columns, and schema details) while enforcing read-only safety and preventing writes or privilege changes from reaching the underlying drivers.
Core Features & Use Cases
- Safe database querying with policy enforcement: Ensures every statement is checked by a policy gate before any driver loads or any connection opens, returning structured results or a safe SQL preview.
- Schema introspection and selective listing: Retrieves tables/columns with optional filtering (e.g., table-name patterns like users%).
- Multi-database support via pluggable drivers: Covers PostgreSQL, MySQL, SQLite, SQL Server, MongoDB, DynamoDB, and Oracle through the connector framework.
Use cases include answering “what changed?” or “what’s the latest rows in this table?” and exploring “what columns exist?” without risking accidental writes.
Quick Start
Run db-connector --action query --params '{"env":"<environment>","sql":"SELECT * FROM users LIMIT 5"}' to get the query results in the connector’s JSON envelope.