feat: add migration runner with genesisProbeTable param

Forward-only SQLite migration runner lifted from authd (src/db/migrate.ts,
PR #14 / merge ced21ab) and parameterized for cross-project use. The single
deliberate API change vs. authd's source: the previously-hardcoded
GENESIS_PROBE_TABLE = 'users' is now an ApplyOptions.genesisProbeTable?: string
option (default 'users').
This commit is contained in:
2026-05-12 02:16:16 -07:00
parent 293c748a96
commit d2dfa5f61b
2 changed files with 192 additions and 0 deletions

12
src/index.ts Normal file
View File

@@ -0,0 +1,12 @@
export {
applyMigrations,
listMigrations,
readAppliedRows,
stampMigration,
} from './migrate.js';
export type {
ApplyOptions,
MigrationFile,
MigrationRow,
MigrationSummary,
} from './migrate.js';