MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / getSymbolById

Method getSymbolById

src/codegraph/schema.ts:208–210  ·  view source on GitHub ↗

Look up a symbol by its primary-key id (used for resolving parent_symbol_id chains).

(id: number)

Source from the content-addressed store, hash-verified

206
207 /** Look up a symbol by its primary-key id (used for resolving parent_symbol_id chains). */
208 getSymbolById(id: number): SymbolRow | null {
209 return (this.db.prepare(`SELECT * FROM symbols WHERE id = ?`).get(id) as SymbolRow | undefined) ?? null;
210 }
211
212 stats(): { files: number; symbols: number; lastIndexed: string | null } {
213 const files = (this.db.prepare(`SELECT COUNT(*) as n FROM files`).get() as { n: number }).n;

Callers 1

executeMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected