TGYD-helige/dsh-plugins--packages-dsh-storage ↗★ 2
@amaster.ai/dsh-storage
将会话事件流同步镜像至主流 SQL 数据库 适合需要将聊天历史和消息持久化备份到外部关系型数据库的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:TGYD-helige/dsh-plugins#c5e90b86403a6463b8459173dc2d187f8c78b067&path:packages/dsh-storage说明文档
阅读完整 README ↗Configuration
Disabled by default. Configure via the profile's cordis.patch.yml:
- insert:
- id: storage-mirror
name: '@amaster.ai/dsh-storage'
config:
enabled: true
database:
enabled: true
provider: mysql # mysql | postgresql | sqlite | sqlserver
url: mysql://user:pass@host:3306/agent
Create or upgrade the tables with the shipped schema variant:
npx prisma db push --schema node_modules/@amaster.ai/dsh-storage/prisma/schema.mysql.prisma --url "mysql://user:pass@host:3306/agent"