MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / SqliteStatement

Interface SqliteStatement

src/db/sqlite-adapter.ts:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11 */
12
13export 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
26export interface SqliteDatabase {
27 prepare(sql: string): SqliteStatement;

Callers 28

runPassOnMainFunction · 0.65
resolver-worker.tsFile · 0.65
executeMethod · 0.65
upgradeUnixBundleFunction · 0.65
upgradeWindowsBundleFunction · 0.65
upgradeNpmFunction · 0.65
executeBinaryRemovalFunction · 0.65
getSegmentMatchesMethod · 0.65
loadParsedConfigFunction · 0.65
flushOrderedMethod · 0.65

Implementers 1

NodeSqliteAdaptersrc/db/sqlite-adapter.ts

Calls

no outgoing calls

Tested by

no test coverage detected