MCPcopy
hub / github.com/rubenv/sql-migrate / ExecContext

Method ExecContext

migrate.go:463–465  ·  view source on GitHub ↗

Returns the number of applied migrations.

(ctx context.Context, db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection)

Source from the content-addressed store, hash-verified

461
462// Returns the number of applied migrations.
463func (ms MigrationSet) ExecContext(ctx context.Context, db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection) (int, error) {
464 return ms.ExecMaxContext(ctx, db, dialect, m, dir, 0)
465}
466
467// Execute a set of migrations
468//

Callers

nothing calls this directly

Calls 1

ExecMaxContextMethod · 0.95

Tested by

no test coverage detected