DSH Sql
STARDUSTLC666/dsh-sql · tools
DeepSeek Harness engineer-level database plug-in: sqllist/query/exec/schema/stats/health six tools, SQLite/MySQL/PostgreSQL three engines, lexical-level read-only protection, write approval gate, row number clamping, CSV/JSON query output.
★ 7GitHub stars
2Forks
2026-09-05Last updated
JavaScriptLanguage
MITLicense
Key features
- Lexical-level read-only protection: sql_query strips strings/comments first and then verifies, rejects data-modifying CTE (WITH...DELETE/UPDATE), SELECT INTO, FOR UPDATE/FOR SHARE, PRAGMA assignment and multiple statements
- SQLiteNode 22.13+ built-in node:sqlite, zero dependencies
- Write approval gatesql_exec defaults to approval (aligned with dsh-email's sending approval), and refuses to execute when there is no approval channel in the headless environment
- readOnly modethe production library can disable writing as a whole
- Streaming row number clampingSQLite iterator / MySQL Readable / PostgreSQL Query row events can collect at most maxRows+1 rows, and the excess mark is truncated
Requirements
- 2-alpha.5 is still available, and the plug-in/tool contract between the two versions is consistent.
Install command
dsh plugin --profile web add github:STARDUSTLC666/dsh-sql