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

Interface SqliteStatement

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

Source from the content-addressed store, hash-verified

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

Callers 29

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
hasCodeGraphSchemaFunction · 0.65
probeSchemaFunction · 0.65
loadParsedConfigFunction · 0.65

Implementers 1

NodeSqliteAdaptersrc/db/sqlite-adapter.ts

Calls

no outgoing calls

Tested by

no test coverage detected