( db: MySql2Database<TSchema>, config: MigrationConfig, )
| 3 | import type { MySql2Database } from './driver.ts'; |
| 4 | |
| 5 | export async function migrate<TSchema extends Record<string, unknown>>( |
| 6 | db: MySql2Database<TSchema>, |
| 7 | config: MigrationConfig, |
| 8 | ) { |
| 9 | const migrations = readMigrationFiles(config); |
| 10 | await db.dialect.migrate(migrations, db.session, config); |
| 11 | } |
nothing calls this directly
no test coverage detected