Add SyncSchema(ctx, db, opts...) to gotype/migrate.go that combines schema introspection + diff + apply in one call.
Options: WithForce() (apply destructive changes), WithSkipIfExists() (skip if schema already matches). Currently MigrateFromEmpty and Migrate exist but lack these convenience flags.
Files: gotype/migrate.go, gotype/migrate_test.go
Add
SyncSchema(ctx, db, opts...)togotype/migrate.gothat combines schema introspection + diff + apply in one call.Options:
WithForce()(apply destructive changes),WithSkipIfExists()(skip if schema already matches). CurrentlyMigrateFromEmptyandMigrateexist but lack these convenience flags.Files:
gotype/migrate.go,gotype/migrate_test.go