db-connector
OfficialQuery databases safely with policy gating
System Documentation
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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: db-connector Download link: https://github.com/narailabs/narai-primitives/archive/main.zip#db-connector Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.