Tools & Capabilities
dsh-sql
STARDUSTLC666/dsh-sql · ★ 9
Database tools for agents: list/query/exec/schema across SQLite/MySQL/PostgreSQL, with lexer-grade read-only protection, row caps and an approval-gated write path.
Manifest details
安装
dsh plugin --profile web add github:STARDUSTLC666/dsh-sqlGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
For install and environment setup, plus plugin development tutorials, see DSH community docs ↗
README
Table of contents
简体中文 · English
SQL
Inspect the schema, then answer questions with data.
Install · Workflow · Full guide
Features
- Connect SQLite, MySQL or PostgreSQL.
- Inspect schemas and summaries with row and time limits.
- Review the database and SQL before writes, then verify by querying.
Install
Open Plugins in the DSH desktop app and install dsh-sql. If the CLI is available:
dsh plugin --profile desktop add dsh-sql
For the web profile, replace desktop with web. Restart that DSH profile after installation. The package’s DSH requirement is >=0.2.1-rc.3.
Start using it
- Add your SQLite, MySQL or PostgreSQL connection in plugin settings and confirm the database.
- Inspect the schema first, then query a small set of rows in read-only mode.
- Specify filters and result limits; check columns, row counts and truncation.
- Enable write access only when needed, review the SQL and connection before confirming, and query again to verify.
Example request:
Inspect the database schema and answer with a read-only query, stating row limits and any truncation.
Before you start
Bring your own database connection and permissions. Write permissions and host approval are separate controls.
Configuration, detailed tools and troubleshooting: full reference.
Plugin updates
Check updates at the bottom of the workbench or native plugin details. Automatic checks are on by default; automatic installation is off. You choose whether to install and when to restart. Suite-managed components update with their bundle. Update behavior.
Documentation
Feedback and contributions
If the plugin helps, a Star makes it easier for others to discover. Report problems or suggest improvements in Issues; code and documentation PRs are welcome. Include versions and reproduction steps, and remove credentials from reports.
License