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

Method getWalAutocheckpoint

src/db/index.ts:487–491  ·  view source on GitHub ↗

Current `wal_autocheckpoint` interval in pages (0 = disabled).

()

Source from the content-addressed store, hash-verified

485
486 /** Current `wal_autocheckpoint` interval in pages (0 = disabled). */
487 getWalAutocheckpoint(): number {
488 const v = this.db.pragma('wal_autocheckpoint', { simple: true });
489 const n = Number(v);
490 return Number.isFinite(n) ? n : 0;
491 }
492
493 /**
494 * Set the connection's `wal_autocheckpoint` interval (pages; 0 disables).

Callers 3

indexAllMethod · 0.80
syncMethod · 0.80

Calls 1

pragmaMethod · 0.65

Tested by

no test coverage detected