MCPcopy Create free account
hub / github.com/CloudCom/goose / runSQLMigration

Function runSQLMigration

lib/goose/migration_sql.go:137–167  ·  view source on GitHub ↗

Run a migration specified in raw SQL. Sections of the script can be annotated with a special comment, starting with "-- +goose" to specify whether the section should be applied during an Up or Down migration All statements following an Up or Down directive are grouped together until another direct

(conf *DBConf, db *sql.DB, scriptFile string, v int64, direction Direction)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

RunMigrationsOnDbFunction · 0.85

Calls 3

splitSQLStatementsFunction · 0.85
FinalizeMigrationFunction · 0.85
ExecMethod · 0.80

Tested by

no test coverage detected