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

Method run

src/db/sqlite-adapter.ts:117–128  ·  view source on GitHub ↗
(...params: any[])

Source from the content-addressed store, hash-verified

115 const failure = (err: unknown): unknown => this.failure(err);
116 return {
117 run(...params: any[]) {
118 let r: any;
119 try {
120 r = stmt.run(...params);
121 } catch (err) {
122 throw failure(err);
123 }
124 return {
125 changes: Number(r?.changes ?? 0),
126 lastInsertRowid: r?.lastInsertRowid ?? 0,
127 };
128 },
129 get(...params: any[]) {
130 try {
131 return stmt.get(...params);

Callers

nothing calls this directly

Calls 3

NumberInterface · 0.85
runMethod · 0.65
failureFunction · 0.50

Tested by

no test coverage detected