Returns the number of applied migrations.
(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64)
| 519 | |
| 520 | // Returns the number of applied migrations. |
| 521 | func (ms MigrationSet) ExecVersion(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64) (int, error) { |
| 522 | return ms.ExecVersionContext(context.Background(), db, dialect, m, dir, version) |
| 523 | } |
| 524 | |
| 525 | func (ms MigrationSet) ExecVersionContext(ctx context.Context, db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64) (int, error) { |
| 526 | migrations, dbMap, err := ms.PlanMigrationToVersion(db, dialect, m, dir, version) |
no test coverage detected