lb290/dsh-db-connections ↗★ 0

dsh-db-connections

配置并命名只读或可写的数据库连接 适合需要在聊天中通过名称快速引用和查询 MySQL 数据库的用户。

套件
dsh-db-connections
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月15日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lb290/dsh-db-connections

Route 2: edit the configuration file

Redefine the db-connections row in the profile's cordis.patch.yml. The loader replaces a row's whole config rather than deep-merging it, so restate every key:

- id: db-connections
  name: "dsh-db-connections"
  config:
    connections:
      - name: "128"              # the name you and the model use in chat
        host: 192.0.2.10
        port: 3306               # optional, default 3306
        user: root
        password: "change-me"       # or use passwordEnv, below
        database: appdb     # optional default schema
        description: dev database # optional; shown in the prompt
        allowWrite: false        # optional, default false = read-only

Where the profile's cordis.patch.yml lives:

PlatformPath
WindowsC:\Users\\.dsh\profiles\desktop\cordis.patch.yml
macOS / Linux~/.dsh/profiles/desktop/cordis.patch.yml

Press Reload on the settings page, or restart the app, to apply a hand edit. A change made through the settings page needs neither.