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

Function servingDbPath

apps/local/src/db/owned-database.test.ts:41–41  ·  view source on GitHub ↗
(dataDir: string)

Source from the content-addressed store, hash-verified

39// data.db exists only after the sole owner opens it, so it is the witness that a
40// non-owner never wrote anything: an ownership loser must fail before any DB I/O.
41const servingDbPath = (dataDir: string): string => join(realpathSync(dataDir), "data.db");
42
43describe("openOwnedLocalDatabase", () => {
44 it("holds data-dir ownership until the serving database is closed", async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected