(stmt: string | { readonly sql: string; readonly args: readonly unknown[] })
| 54 | ): Effect.Effect<number, DataMigrationError> => |
| 55 | Effect.gen(function* () { |
| 56 | const execute = (stmt: string | { readonly sql: string; readonly args: readonly unknown[] }) => |
| 57 | Effect.tryPromise({ |
| 58 | try: () => client.execute(stmt), |
| 59 | catch: (cause) => new DataMigrationError({ migration: options.migrationName, cause }), |
| 60 | }); |
| 61 | |
| 62 | const exists = yield* execute( |
| 63 | "SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'integration'", |
no test coverage detected