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

Interface SqliteDatabase

src/db/sqlite-adapter.ts:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48export interface SqliteDatabase {
49 prepare(sql: string): SqliteStatement;
50 exec(sql: string): void;
51 pragma(str: string, options?: { simple?: boolean }): any;
52 transaction<T>(fn: (...args: any[]) => T, options?: TransactionOptions): (...args: any[]) => T;
53 close(): void;
54 readonly open: boolean;
55 /** Undefined on a runtime without `isTransaction`; callers must then not memoize. */
56 readonly inTransaction?: boolean;
57}
58
59/**
60 * The active SQLite backend. Only one now (`node:sqlite`); kept as a named type

Callers 37

probeSchemaFunction · 0.65
migrations.tsFile · 0.65
getCurrentVersionFunction · 0.65
recordMigrationFunction · 0.65
getMigrationHistoryFunction · 0.65
publishMethod · 0.65
initializeOnMethod · 0.65
healBulkNodeLoadMethod · 0.65
selfCloseTagNameMethod · 0.65
extractComponentTagsMethod · 0.65
extractCodeBlocksMethod · 0.65

Implementers 1

NodeSqliteAdaptersrc/db/sqlite-adapter.ts

Calls

no outgoing calls

Tested by

no test coverage detected