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

Function rawDb

__tests__/explore-long-query.test.ts:30–32  ·  view source on GitHub ↗
(cg: CodeGraph)

Source from the content-addressed store, hash-verified

28 return (cg as unknown as { queries: QueryBuilder }).queries;
29}
30function rawDb(cg: CodeGraph): SqliteDatabase {
31 return (cg as unknown as { db: { getDb(): SqliteDatabase } }).db.getDb();
32}
33
34/** Count the statements run whose SQL matches `pattern`, through the adapter. */
35function countStatements(db: SqliteDatabase, pattern: RegExp): { count: number } {

Callers 2

expectSameRowsFunction · 0.85

Calls 1

getDbMethod · 0.80

Tested by

no test coverage detected