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
打開原帖核對

同一痛點的其他討論

相關機會