MCPcopy Index your code
hub / github.com/rubenv/sql-migrate / ExecVersion

Function ExecVersion

migrate.go:490–492  ·  view source on GitHub ↗

Execute a set of migrations Will apply at the target `version` of migration. Cannot be a negative value. Returns the number of applied migrations.

(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64)

Source from the content-addressed store, hash-verified

488//
489// Returns the number of applied migrations.
490func ExecVersion(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64) (int, error) {
491 return ExecVersionContext(context.Background(), db, dialect, m, dir, version)
492}
493
494// Execute a set of migrations with an input context.
495//

Calls 1

ExecVersionContextFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…