| 33 | } |
| 34 | |
| 35 | class Adapter implements DatabaseAdapter { |
| 36 | constructor(private db: Database.Database) {} |
| 37 | exec(sql: string) { |
| 38 | this.db.exec(sql) |
| 39 | } |
| 40 | prepare(sql: string) { |
| 41 | return new Stmt(this.db.prepare(sql)) |
| 42 | } |
| 43 | transaction<T>(fn: () => T): T { |
| 44 | return this.db.transaction(fn)() |
| 45 | } |
| 46 | pragma(p: string) { |
| 47 | return this.db.pragma(p) |
| 48 | } |
| 49 | close() { |
| 50 | this.db.close() |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | const T0 = 1700000000 |
| 55 |
nothing calls this directly
no outgoing calls
no test coverage detected