(ctx context.Context, db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, version int64)
| 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) |
| 527 | if err != nil { |
| 528 | return 0, err |
| 529 | } |
| 530 | return ms.applyMigrations(ctx, dir, migrations, dbMap) |
| 531 | } |
| 532 | |
| 533 | // Applies the planned migrations and returns the number of applied migrations. |
| 534 | func (MigrationSet) applyMigrations(ctx context.Context, dir MigrationDirection, migrations []*PlannedMigration, dbMap *gorp.DbMap) (int, error) { |
no test coverage detected