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

Method getJournalMode

src/db/index.ts:514–521  ·  view source on GitHub ↗

* The journal mode actually in effect (e.g. 'wal', 'delete'). * * SQLite silently keeps the prior mode if WAL can't be enabled — e.g. on * filesystems without shared-memory support (some network/virtualized mounts, * WSL2 /mnt). So the effective mode can differ * from what `configureC

()

Source from the content-addressed store, hash-verified

512 * writer; anything else ⇒ they can. See issue #238.
513 */
514 getJournalMode(): string {
515 const raw = this.db.pragma('journal_mode');
516 const row = Array.isArray(raw) ? raw[0] : raw;
517 const mode = row && typeof row === 'object'
518 ? (row as Record<string, unknown>).journal_mode
519 : row;
520 return String(mode ?? '').toLowerCase();
521 }
522
523 /**
524 * Get current schema version

Callers 3

handleStatusMethod · 0.45
buildStatsFunction · 0.45
mainFunction · 0.45

Calls 1

pragmaMethod · 0.65

Tested by

no test coverage detected