Skip to content

Support USE statement#1129

Merged
gfx merged 2 commits intosqldef:masterfrom
chi-bd:features/UseStatement
Feb 12, 2026
Merged

Support USE statement#1129
gfx merged 2 commits intosqldef:masterfrom
chi-bd:features/UseStatement

Conversation

@chi-bd
Copy link
Contributor

@chi-bd chi-bd commented Feb 7, 2026

This patch adds support for the USE database; statement for MySQL/MSSQL.

I understand that this tool is designed to manage schemas on a per‑database basis. However, some other schema management tools emit USE statement when exporting schemas. The goal of this change is to avoid syntax error when importing schemas generated by those tools.

@codecov
Copy link

codecov bot commented Feb 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
schema/parser.go 91.26% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gfx gfx added this pull request to the merge queue Feb 12, 2026
Merged via the queue into sqldef:master with commit 94a1f0b Feb 12, 2026
25 checks passed
@sqldef-bot sqldef-bot bot mentioned this pull request Feb 12, 2026
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.

2 participants