(cg: CodeGraph)
| 28 | return (cg as unknown as { queries: QueryBuilder }).queries; |
| 29 | } |
| 30 | function 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. */ |
| 35 | function countStatements(db: SqliteDatabase, pattern: RegExp): { count: number } { |
no test coverage detected