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

Method constructor

src/db/sqlite-adapter.ts:79–83  ·  view source on GitHub ↗
(dbPath: string, opts?: { readOnly?: boolean })

Source from the content-addressed store, hash-verified

77 private readonly _dbPath: string;
78
79 constructor(dbPath: string, opts?: { readOnly?: boolean }) {
80 const { DatabaseSync } = loadNodeSqlite();
81 this._dbPath = dbPath;
82 this._db = opts?.readOnly ? new DatabaseSync(dbPath, { readOnly: true }) : new DatabaseSync(dbPath);
83 }
84
85 /**
86 * What a failed call throws: the error itself, or — for a "disk I/O error"

Callers

nothing calls this directly

Calls 1

loadNodeSqliteFunction · 0.90

Tested by

no test coverage detected