| 16 | import { openTestSqliteDatabase } from '../../../../tests/helpers/sqlite.mts' |
| 17 | |
| 18 | class Stmt implements PreparedStatement { |
| 19 | readonly?: boolean |
| 20 | constructor(private stmt: Database.Statement) { |
| 21 | this.readonly = stmt.readonly |
| 22 | } |
| 23 | get(...p: unknown[]) { |
| 24 | return this.stmt.get(...p) as Record<string, unknown> | undefined |
| 25 | } |
| 26 | all(...p: unknown[]) { |
| 27 | return this.stmt.all(...p) as Record<string, unknown>[] |
| 28 | } |
| 29 | run(...p: unknown[]): RunResult { |
| 30 | const r = this.stmt.run(...p) |
| 31 | return { changes: r.changes, lastInsertRowid: r.lastInsertRowid } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | class Adapter implements DatabaseAdapter { |
| 36 | constructor(private db: Database.Database) {} |
nothing calls this directly
no outgoing calls
no test coverage detected