| 11 | */ |
| 12 | |
| 13 | export interface SqliteStatement { |
| 14 | run(...params: any[]): { changes: number; lastInsertRowid: number | bigint }; |
| 15 | get(...params: any[]): any; |
| 16 | all(...params: any[]): any[]; |
| 17 | /** |
| 18 | * Lazily yield result rows one at a time instead of materializing the whole |
| 19 | * set with `all()`. Use for unbounded scans (e.g. every function/method node) |
| 20 | * so memory stays O(1) in the row count rather than O(rows) — see #610, where |
| 21 | * `all()`-ing every symbol on a dense project spiked the heap into an OOM. |
| 22 | */ |
| 23 | iterate(...params: any[]): IterableIterator<any>; |
| 24 | } |
| 25 | |
| 26 | export interface SqliteDatabase { |
| 27 | prepare(sql: string): SqliteStatement; |
no outgoing calls
no test coverage detected