Skip to content

Fix DBML string escaping - #1200

Open
yuxino wants to merge 1 commit into
drawdb-io:mainfrom
yuxino:fix/dbml-single-quote-escaping
Open

yuxino wants to merge 1 commit into
drawdb-io:mainfrom
yuxino:fix/dbml-single-quote-escaping

Conversation

@yuxino

@yuxino yuxino commented Nov 12, 2026

Copy link
Copy Markdown

Add a comment such as Customer's identifier, export the diagram as DBML, then import that file: drawDB reports Expect a comma ',' and disables Import. The exporter escapes apostrophes by doubling them, which is SQL syntax.

Use DBML escaping for comments, text defaults and index names so quotes and backslashes survive export and import. The exported file now imports successfully with the original comment intact.

Added round-trip checks using drawDB's existing DBML parser. Lint and the production build pass.

before-annotated after-annotated

@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown

@yuxino is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

1 participant