Returns the number of applied migrations.
(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection)
| 449 | |
| 450 | // Returns the number of applied migrations. |
| 451 | func (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 | // |