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

Function ExecContext

migrate.go:458–460  ·  view source on GitHub ↗

Execute a set of migrations with an input context. 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

456//
457// Returns the number of applied migrations.
458func ExecContext(ctx context.Context, db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection) (int, error) {
459 return ExecMaxContext(ctx, db, dialect, m, dir, 0)
460}
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) {

Callers 1

TestContextTimeoutMethod · 0.85

Calls 1

ExecMaxContextFunction · 0.85

Tested by 1

TestContextTimeoutMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…