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

Function assertWalMarkerRows

apps/local/src/db/v1-v2-migration.test.ts:883–889  ·  view source on GitHub ↗
(input: { readonly path: string; readonly marker: string })

Source from the content-addressed store, hash-verified

881};
882
883const assertWalMarkerRows = async (input: { readonly path: string; readonly marker: string }) => {
884 expect(existsSync(input.path)).toBe(true);
885 const client = await openLocalLibsql(input.path);
886 const markers = await client.execute("SELECT id FROM wal_marker");
887 client.close();
888 expect(markers.rows).toEqual([{ id: input.marker }]);
889};
890
891type MigrationJournalForTestValue = ReturnType<typeof readMigrationJournalForTest>;
892

Callers 1

Calls 3

openLocalLibsqlFunction · 0.90
executeMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected