Execute a set of migrations Returns the number of applied migrations.
(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection)
| 444 | // |
| 445 | // Returns the number of applied migrations. |
| 446 | func Exec(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection) (int, error) { |
| 447 | return ExecMaxContext(context.Background(), db, dialect, m, dir, 0) |
| 448 | } |
| 449 | |
| 450 | // Returns the number of applied migrations. |
| 451 | func (ms MigrationSet) Exec(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection) (int, error) { |
searching dependent graphs…