MCPcopy Create free account
hub / github.com/bytebase/bytebase / getUnknownDatabase

Function getUnknownDatabase

frontend/src/react/stores/app/database.ts:43–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41) => {
42 let unknownDatabase: Database | undefined;
43 const getUnknownDatabase = () => {
44 unknownDatabase ??= createUnknownDatabase();
45 return unknownDatabase;
46 };
47
48 // Mirrors the legacy Pinia `batchComposeDatabase`: pre-caches the owning
49 // projects and guarantees `instanceResource` is populated (with a fallback)

Callers 1

createDatabaseSliceFunction · 0.85

Calls 1

createUnknownDatabaseFunction · 0.90

Tested by

no test coverage detected