dialect/sql/schema: add schema dump command (#4296)

* dialect/sql/schema: add schema dump command

* entc/gen/template: drop build flag from generated globalid.go
This commit is contained in:
Jannik Clausen
2025-01-15 16:24:02 +01:00
committed by GitHub
parent 01e21a2c30
commit 05c977357f
7 changed files with 200 additions and 5 deletions

View File

@@ -525,6 +525,7 @@ func (a *Atlas) StateReader(tables ...*Table) migrate.StateReaderFunc {
}
a.sqlDialect = drv
}
a.setupTables(tables)
ts, err := a.tables(tables)
if err != nil {
return nil, err