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

Function ExecMaxContext

migrate.go:481–483  ·  view source on GitHub ↗

Execute a set of migrations with an input context. Will apply at most `max` migrations. Pass 0 for no limit (or use Exec). Returns the number of applied migrations.

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

Source from the content-addressed store, hash-verified

479//
480// Returns the number of applied migrations.
481func ExecMaxContext(ctx context.Context, db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, max int) (int, error) {
482 return migSet.ExecMaxContext(ctx, db, dialect, m, dir, max)
483}
484
485// Execute a set of migrations
486//

Callers 2

ExecFunction · 0.85
ExecContextFunction · 0.85

Calls 1

ExecMaxContextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…