(
client: SqliteDataMigrationClient,
stmt: string | { readonly sql: string; readonly args: readonly unknown[] },
migration: string | null,
)
| 52 | const LEDGER_TABLE = "data_migration"; |
| 53 | |
| 54 | const execute = ( |
| 55 | client: SqliteDataMigrationClient, |
| 56 | stmt: string | { readonly sql: string; readonly args: readonly unknown[] }, |
| 57 | migration: string | null, |
| 58 | ) => |
| 59 | Effect.tryPromise({ |
| 60 | try: () => client.execute(stmt), |
| 61 | catch: (cause) => new DataMigrationError({ migration, cause }), |
| 62 | }); |
| 63 | |
| 64 | /** Wrap a promise-shaped migration body as a registry entry. */ |
| 65 | export const sqliteDataMigration = ( |
no test coverage detected