()
| 29 | |
| 30 | return { |
| 31 | async init() { |
| 32 | db = await load() |
| 33 | connection = { |
| 34 | async executeQuery<O>(query: CompiledQuery) { |
| 35 | return { |
| 36 | rows: (await db.execO(query.sql, query.parameters)) as O[], |
| 37 | } |
| 38 | }, |
| 39 | async *streamQuery() { |
| 40 | throw new Error("Sqlite driver doesn't support streaming") |
| 41 | }, |
| 42 | } |
| 43 | }, |
| 44 | async acquireConnection() { |
| 45 | await waiter.lock() |
| 46 | return connection |
nothing calls this directly
no outgoing calls
no test coverage detected