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)
| 456 | // |
| 457 | // Returns the number of applied migrations. |
| 458 | func 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. |
| 463 | func (ms MigrationSet) ExecContext(ctx context.Context, db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection) (int, error) { |
searching dependent graphs…