Returns the number of applied migrations.
(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, max int)
| 505 | |
| 506 | // Returns the number of applied migrations. |
| 507 | func (ms MigrationSet) ExecMax(db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, max int) (int, error) { |
| 508 | return ms.ExecMaxContext(context.Background(), db, dialect, m, dir, max) |
| 509 | } |
| 510 | |
| 511 | // Returns the number of applied migrations, but applies with an input context. |
| 512 | func (ms MigrationSet) ExecMaxContext(ctx context.Context, db *sql.DB, dialect string, m MigrationSource, dir MigrationDirection, max int) (int, error) { |
no test coverage detected