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

Method Exec

migrate.go:451–453  ·  view source on GitHub ↗

Returns the number of applied migrations.

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

Source from the content-addressed store, hash-verified

449
450// Returns the number of applied migrations.
451func (ms MigrationSet) Exec(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection) (int, error) {
452 return ms.ExecMaxContext(context.Background(), db, dialect, m, dir, 0)
453}
454
455// Execute a set of migrations with an input context.
456//

Calls 1

ExecMaxContextMethod · 0.95