| 46 | } |
| 47 | |
| 48 | export interface SqliteDatabase { |
| 49 | prepare(sql: string): SqliteStatement; |
| 50 | exec(sql: string): void; |
| 51 | pragma(str: string, options?: { simple?: boolean }): any; |
| 52 | transaction<T>(fn: (...args: any[]) => T, options?: TransactionOptions): (...args: any[]) => T; |
| 53 | close(): void; |
| 54 | readonly open: boolean; |
| 55 | /** Undefined on a runtime without `isTransaction`; callers must then not memoize. */ |
| 56 | readonly inTransaction?: boolean; |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * The active SQLite backend. Only one now (`node:sqlite`); kept as a named type |
no outgoing calls
no test coverage detected