db-connector
Run the following command in DeepSeek Harness:
dsh plugin install JohnXu22786/db-connector
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install JohnXu22786/db-connector in DeepSeek Harness to install it (source: https://github.com/JohnXu22786/db-connector).
About this plugin
In the DeepSeek Harness (dsh) framework, agents that touch databases directly often lack meaningful safety boundaries — writes go unapproved, injection risk is unmanaged, queries run without time limits, and operations leave no audit trail. db-connector closes that gap by wrapping SQLite, PostgreSQL, and MySQL behind five model-facing tools, so agents can access structured data under strict, auditable policies without hand-rolling connection management, transaction control, or logging pipelines.
The design centers on read-first access, explicit write approval, and full audit coverage. db_query permits only SELECT-class statements and rejects everything else before a driver is invoked. db_exec demands an allowWrite confirmation and executes inside a transaction with automatic rollback on failure. db_schema provides TTL-cached introspection of tables, columns, indexes, and foreign keys. db_audit appends every call — denials and errors included — as a JSONL record. Parameters are always bound, credentials are referenced by name only and never written to logs, reducing injection and leakage surfaces at the source.
Ideal for dsh workflows where agents need to read from or cautiously write to a database: report generation, data inspection, ops triage. If you want your model to collaborate with three mainstream databases inside controlled boundaries — with security defaults, a clear tool contract, and a durable operation trail — db-connector is a ready-to-use layer that eliminates the need to build that infrastructure from scratch.
Use Cases
- An agent reads SQLite tables in real time to produce structured reports in a dsh workflow
- An ops agent performs approved write-fixes on PostgreSQL with transaction rollback as a safety net
- A developer inspects tables, columns, indexes, and foreign keys via the cached schema introspection tool
Best For
- Developers building database-aware agents within the dsh framework
- Ops or data teams that require safe, audited access to multiple relational databases from agents
- Platform engineers who want to expose a read-first, fully-audited database channel to models
Related Plugins
Adds an Auto approval mode on the official workspace-write sandbox, classifying semantic risks, asking when ambiguous, and denying destructive operations.
Undo/rollback system for DSH: config & plugin snapshots, one-click undo/redo/restore, message-level revert, secret masking, safe mode, and offline WebUI/GUI/CLI rescue tools for when DSH won't start.
Packages all 87 SKILL.md files from upstream reverse-skill as a DeepSeek Harness plugin that auto-registers them for authorized reverse engineering, penetration testing, and security research.
Dockyard DSH is a native DeepSeek Harness plugin that unifies official OAuth/client sessions for Codex, Antigravity, Grok, Claude, and Cursor, providing account pool, model catalog, and quota status.