DemandHunt 海外社区机会雷达
简中
独立开发与工具 Stack Exchange · 2025-08-18

API 有 Swagger,数据库 schema 也想要个『存进 Git 就能看』的工具

APIs have Swagger; databases need the same — schema as a tracked file with nice docs

30 秒速览
  • 谁在提Stack Exchange · 2025-08-18 · 1 评
  • 想要什么API 有 Swagger,数据库 schema 也想要个『存进 Git 就能看』的工具
  • 能做成什么『数据库的 Swagger』:连接库导出 JSON schema、生成可视化文档、diff 历史进 Git;开源核心 + 团队版。

原帖原话

“Swagger presents a JSON API schema nicely. What tool does the same for a database schema stored as JSON/XML? I want to track schema changes with Git only.”

“Swagger 能把 JSON 的 API schema 展示得很好。有没有类似工具能把数据库 schema 存成 JSON/XML 文件并展示?我想只用 Git 跟踪 schema 变更。”

— Stack Exchange · 2025-08-18 · softwarerecs.stackexchange.com/questions/93630/what-…

需求背景与痛点

痛在哪

数据库结构变更靠口头和迁移脚本拼凑:没有 schema 的文本事实源,review 时看不出表结构变成了什么样。

可以做成什么

能做成什么

『数据库的 Swagger』:连接库导出 JSON schema、生成可视化文档、diff 历史进 Git;开源核心 + 团队版。

怎么验证它

  1. 读完原帖的评论区,把重复出现的具体场景记下来——重复次数就是需求的密度。
  2. 搜索「数据库 / Schema 文档」相关的现有工具,确认它们只覆盖了哪一环。
  3. 用一句话落地页,投回 Stack Exchange 或同类社群,看有没有人主动问价格。

已有方案与差异

Flyway/Liquibase(迁移向,非文档);DBML/dbdocs(生态小)

社区原声 · 热门评论

You can use schemacrawler for this, the Free database schema discovery and comprehension tool. The downloadable release comes with a sqlite database, sc.db When you have downloaded schemacrawler, execute this to load the schemacrawler shell: schemacrawler --shell Inside the schemacrawler shell, execute 3 commands to extract the schema to text: connect --server=sqlite --database=sc.db load --info-level=standard execute --command=schema Expected output: Tables ======================================================================== Authors [table] ------------------------------------------------

— knb · ▲ 0
打开原帖核对

同一痛点的其他讨论

相关机会