MCPcopy Create free account
hub / github.com/bytebase/bytebase / diffPostgresSDL

Function diffPostgresSDL

backend/plugin/schema/pg/sdl_migration_omni_test.go:39–44  ·  view source on GitHub ↗
(t *testing.T, fromSDL, toSDL string)

Source from the content-addressed store, hash-verified

37const eventTriggerFunctionOnlySDL = eventTriggerFunctionSDL
38
39func diffPostgresSDL(t *testing.T, fromSDL, toSDL string) string {
40 t.Helper()
41 sql, err := schema.DiffSDLMigration(storepb.Engine_POSTGRES, strings.TrimSpace(fromSDL), strings.TrimSpace(toSDL))
42 require.NoError(t, err)
43 return sql
44}
45
46// omniSDLMigration is a test helper that runs the omni SDL migration pipeline:
47// from = LoadSDL(fromSDL), to = LoadSDL(toSDL), Diff, GenerateMigration.

Calls 1

DiffSDLMigrationFunction · 0.92

Tested by

no test coverage detected