MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / sqliteWalSize

Function sqliteWalSize

apps/local/src/db/v1-v2-migration.test.ts:859–860  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

857};
858
859const sqliteWalSize = (path: string): number =>
860 existsSync(`${path}-wal`) ? statSync(`${path}-wal`).size : 0;
861
862const assertSqliteWalEmptyOrAbsent = (path: string): void => {
863 expect(sqliteWalSize(path)).toBe(0);

Callers 2

writeLiveWalMarkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected