MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / closeDb

Function closeDb

packages/cli/src/db/client.ts:36–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36export function closeDb(): void {
37 if (!cached) return;
38 cached.sqlite.close();
39 cached = null;
40}
41
42// Module depth differs between dev (src/db/client.ts) and prod (bundled dist/index.js),
43// so walk up from the running module to find the package's drizzle/ folder.

Callers 9

showFunction · 0.85
getDbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected