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

Interface NodeStatement

src/db/queries.ts:278–282  ·  view source on GitHub ↗

A prepared `SELECT * FROM nodes …`, whose rows come back as nodes.

Source from the content-addressed store, hash-verified

276
277/** A prepared `SELECT * FROM nodes …`, whose rows come back as nodes. */
278interface NodeStatement {
279 all(...params: unknown[]): Node[];
280 get(...params: unknown[]): Node | undefined;
281 iterate(...params: unknown[]): IterableIterator<Node>;
282}
283
284function prepareNodeStatement(db: SqliteDatabase, sql: string): NodeStatement {
285 const stmt = db.prepare(sql);

Callers 23

processInBatchesFunction · 0.65
indexAllMethod · 0.65
destroyMethod · 0.65
readyMethod · 0.65
resolveBatchMethod · 0.65
recycleWorkersMethod · 0.65
destroyMethod · 0.65
synthesizeCallbackEdgesFunction · 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