Skip to content

Read DBML database schemas as text (#854) - #1094

Merged
KnifeLemon merged 1 commit into
mainfrom
feat/dbml-text
Nov 4, 2026
Merged

KnifeLemon merged 1 commit into
mainfrom
feat/dbml-text

Conversation

@KnifeLemon

Copy link
Copy Markdown
Owner

What changed

A .dbml file (Database Markup Language, the schema language of dbdiagram.io) is plain text, so it joins the TXT entry the way .dart and .hql did in #1047. It opens the text donut and goes through the text routes: TXT, Markdown, PDF, DOCX and the rest, with the schema kept as it was written.

  • FormatRegistry: dbml added to the TXT extensions; the comment above the list now names database schemas and [Format]: .dbml #854.
  • Schema 65: the text donut of existing installs learns dbml; a user's own donut that already claims it keeps it. (Schema 65 may be renumbered if another change takes it first: the .kra~ and FLIC PRs add one each, and feat(tools): Add background tool #1081 just took 64.)
  • docs/ENGINES.md: DBML in the text engine's row.

Not part of this (FORMAT-RULES rule 5, and what the issue thread said): DBML → SQL and DBML → a diagram. The file is only read as text; nothing translates or draws the schema. No new format id, so FormatFields is unchanged (TXT already has its field and grade).

How it was tested

  • Filee.Core.Tests/ScriptTextTests: shop.dbml is detected as TXT; schema 64 → 65 learns dbml once and leaves a custom claim alone.
  • Filee.Engines.Tests/ScriptTextTests: a generated shop.dbml becomes a PDF of its text (rhwp) and a shop.txt with the same text.
  • dotnet build, all of Filee.Core.Tests (972 passed, 3 skipped, incl. FormatFieldsTests), dotnet format Filee.slnx --verify-no-changes.

Closes #854

🤖 Generated with Claude Code

A .dbml file (Database Markup Language, dbdiagram.io) is plain text, so it
joins the TXT entry like Dart and HiveQL did in #1047: TXT, Markdown, PDF and
DOCX go through the text routes. Nothing translates the schema to SQL or draws
it as a diagram.

Schema 65: the text donut learns "dbml"; custom claims stay put.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KnifeLemon
KnifeLemon merged commit 4271455 into main Nov 4, 2026
10 checks passed
@KnifeLemon
KnifeLemon deleted the feat/dbml-text branch November 4, 2026 04:17
KnifeLemon added a commit that referenced this pull request Nov 4, 2026
#1094 (DBML) took schema 65 first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KnifeLemon added a commit that referenced this pull request Nov 4, 2026
#1094 (DBML) took 65 and #1101 (.kra~) took 66.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KnifeLemon added a commit that referenced this pull request Nov 4, 2026
#1094 (DBML) took 65, #1101 (.kra~) 66 and #1099 (FLIC) 67.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Format]: .dbml

1 participant