| 26 | } |
| 27 | |
| 28 | export interface SqliteDatabase { |
| 29 | prepare(sql: string): SqliteStatement; |
| 30 | exec(sql: string): void; |
| 31 | pragma(str: string, options?: { simple?: boolean }): any; |
| 32 | transaction<T>(fn: (...args: any[]) => T): (...args: any[]) => T; |
| 33 | close(): void; |
| 34 | readonly open: boolean; |
| 35 | /** Undefined on a runtime without `isTransaction`; callers must then not memoize. */ |
| 36 | readonly inTransaction?: boolean; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * The active SQLite backend. Only one now (`node:sqlite`); kept as a named type |
no outgoing calls
no test coverage detected