2026 都没剩多久了,你还在手搓数据库版本吗🤔
zzxCoding777: 正文:
之前在信创项目里做数据库迁移,信创数据库 Flyway 里巨多不兼容,魔改也不好用,索性自己写了一个:Flydb ( Apache-2.0 ,纯 Java ,Java 8 字节码零依赖)。
**核心能力:**
任意 JDBC 数据库,内置达梦、人大金仓、openGauss 、OceanBase 、TiDB 方言(目前测过 pg/mysql/oracle/oceanbase ,其他代码做了单测)。理论上信创库越兼容 oracle/mysql 语法就越无问题,理想情况哈哈😂
migrate / info / validate / baseline / repair / clean / undo / init ,语义对标 Flyway
面向自动化设计:稳定退出码( 0-5 按类别分流)、--dry-run 预演、密码不落盘
这次主要想分享的是给它配的 Agent Skills 技能族——让 Claude Code / Codex 这类 AI 编程助手能安全地接管迁移操作:
装上技能后,AI 会先 validate → dry-run 给你看清单,迁移数据库必须你明确授权才执行 migrate。
clean 默认禁用双开关防呆,密码只走环境变量。
技能自带全部命令/配置/错误码参考文档,不依赖外链,复制到哪都能用。
已经在真实 MySQL 8.4 上全流程实测过(含失败路径)。
**一条命令安装:**
npx skills add [https://github.com/zzxCoding/skills](https://github.com/zzxCoding/skills) --skill flydb
**给龙虾爱马仕安装:**
**clawhub:**
Before installing anything, inspect the ClawHub skill metadata and setup requirements.
If the skill asks you to install a third-party package or CLI, verify its source, maintainer, and package contents before running the install command.
Install the skill "flydb" (@zzxcoding/flydb) from ClawHub only after those checks pass.
Skill page: [https://clawhub.ai/zzxcoding/skills/flydb](https://clawhub.ai/zzxcoding/skills/flydb)
Keep the work scoped to this skill only.
After install, help me finish setup from verified skill metadata.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.
**skillhub:**
请根据 [https://skillhub.cn/install/skillhub.md](https://skillhub.cn/install/skillhub.md) ,安装 @ [user_c9b8aa6a](https://www.v2ex.com/member/user_c9b8aa6a)/flydb 。
**项目网站:** [https://flydb.zzxcoding.dev/](https://flydb.zzxcoding.dev)
**项目:** [https://github.com/zzxCoding/Flydb](https://github.com/zzxCoding/Flydb)
**技能仓库:** [https://github.com/zzxCoding/skills](https://github.com/zzxCoding/skills)
欢迎拍砖,好用麻烦🌟标,信创方言的坑尤其欢迎反馈。
---
原文链接:[点击查看](https://www.v2ex.com/t/1234585)
之前在信创项目里做数据库迁移,信创数据库 Flyway 里巨多不兼容,魔改也不好用,索性自己写了一个:Flydb ( Apache-2.0 ,纯 Java ,Java 8 字节码零依赖)。
**核心能力:**
任意 JDBC 数据库,内置达梦、人大金仓、openGauss 、OceanBase 、TiDB 方言(目前测过 pg/mysql/oracle/oceanbase ,其他代码做了单测)。理论上信创库越兼容 oracle/mysql 语法就越无问题,理想情况哈哈😂
migrate / info / validate / baseline / repair / clean / undo / init ,语义对标 Flyway
面向自动化设计:稳定退出码( 0-5 按类别分流)、--dry-run 预演、密码不落盘
这次主要想分享的是给它配的 Agent Skills 技能族——让 Claude Code / Codex 这类 AI 编程助手能安全地接管迁移操作:
装上技能后,AI 会先 validate → dry-run 给你看清单,迁移数据库必须你明确授权才执行 migrate。
clean 默认禁用双开关防呆,密码只走环境变量。
技能自带全部命令/配置/错误码参考文档,不依赖外链,复制到哪都能用。
已经在真实 MySQL 8.4 上全流程实测过(含失败路径)。
**一条命令安装:**
npx skills add [https://github.com/zzxCoding/skills](https://github.com/zzxCoding/skills) --skill flydb
**给龙虾爱马仕安装:**
**clawhub:**
Before installing anything, inspect the ClawHub skill metadata and setup requirements.
If the skill asks you to install a third-party package or CLI, verify its source, maintainer, and package contents before running the install command.
Install the skill "flydb" (@zzxcoding/flydb) from ClawHub only after those checks pass.
Skill page: [https://clawhub.ai/zzxcoding/skills/flydb](https://clawhub.ai/zzxcoding/skills/flydb)
Keep the work scoped to this skill only.
After install, help me finish setup from verified skill metadata.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.
**skillhub:**
请根据 [https://skillhub.cn/install/skillhub.md](https://skillhub.cn/install/skillhub.md) ,安装 @ [user_c9b8aa6a](https://www.v2ex.com/member/user_c9b8aa6a)/flydb 。
**项目网站:** [https://flydb.zzxcoding.dev/](https://flydb.zzxcoding.dev)
**项目:** [https://github.com/zzxCoding/Flydb](https://github.com/zzxCoding/Flydb)
**技能仓库:** [https://github.com/zzxCoding/skills](https://github.com/zzxCoding/skills)
欢迎拍砖,好用麻烦🌟标,信创方言的坑尤其欢迎反馈。
---
原文链接:[点击查看](https://www.v2ex.com/t/1234585)
评论
暂无评论。