MCPcopy
hub / github.com/microsoft/data-formulator / load

Function load

src/app/workspaceDB.ts:101–109  ·  view source on GitHub ↗

Load workspace metadata + state. Returns undefined if not found.

(id: string)

Source from the content-addressed store, hash-verified

99
100 /** Load workspace metadata + state. Returns undefined if not found. */
101 async load(id: string): Promise<WorkspaceEntry | undefined> {
102 const db = await openDB();
103 try {
104 const store = txStore(db, 'readonly');
105 return await reqToPromise(store.get(id));
106 } finally {
107 db.close();
108 }
109 },
110
111 /** Save workspace metadata, state, and table index. */
112 async save(

Callers

nothing calls this directly

Calls 6

openDBFunction · 0.85
txStoreFunction · 0.85
reqToPromiseFunction · 0.85
tableKeyFunction · 0.85
getMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected