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

Function get

frontend/src/react/lib/keyValueStorage.ts:21–29  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

19 await db.put({ _id: key, value }, { force: true });
20 },
21 async get<T = unknown>(key: string): Promise<T | undefined> {
22 try {
23 const doc = await db.get(key);
24 return doc.value as T;
25 } catch {
26 // Data not found or error occurred.
27 return undefined;
28 }
29 },
30 async remove(key: string): Promise<void> {
31 const doc = await db.get(key);
32 if (doc) {

Callers 15

sqlReview.tsFile · 0.85
applyAndPersistFunction · 0.85
createQueryHistorySliceFunction · 0.85
createWorksheetSaveSliceFunction · 0.85
addTabFunction · 0.85
cloneTabFunction · 0.85
closeTabFunction · 0.85
updateTabFunction · 0.85
updateCurrentTabFunction · 0.85
updateBatchQueryContextFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected