Agent access to operational SQL data is safer when a selected, observable mirror replaces direct access to the system of record
Source: RavenDB
RavenDB has launched Quill for PostgreSQL, SQL Server, and MySQL. It runs in a Docker container beside the source system, reads only the tables an operator selects, and mirrors them into an internal RavenDB database that AI agents query. Quill uses each platform's change-recording capability to keep the mirror current; the source database remains the system of record and Quill documents the source connection as read-only. Agents can also be configured with separate actions that send requests to web endpoints.
Why this matters: A mirror is a useful boundary, not an automatic security outcome. Start with the smallest tables, columns, and rows needed for a concrete use case; review the privileges required for change capture and the treatment of deleted or stale records; protect the LLM and database credentials; and monitor replication lag. Keep write-capable actions out of the data path by default, then give each action a named owner, constrained endpoint, approval rule, audit trail, and revoke path. That makes the agent's context layer easier to govern than broad production-database access.
Read RavenDB's Quill architecture overview