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

Function txStore

src/app/workspaceDB.ts:69–75  ·  view source on GitHub ↗
(
    db: IDBDatabase,
    mode: IDBTransactionMode,
    storeName: string = STORE_WORKSPACES,
)

Source from the content-addressed store, hash-verified

67}
68
69function txStore(
70 db: IDBDatabase,
71 mode: IDBTransactionMode,
72 storeName: string = STORE_WORKSPACES,
73): IDBObjectStore {
74 return db.transaction(storeName, mode).objectStore(storeName);
75}
76
77function reqToPromise<T>(req: IDBRequest<T>): Promise<T> {
78 return new Promise((resolve, reject) => {

Callers 7

listFunction · 0.85
loadFunction · 0.85
saveFunction · 0.85
deleteFunction · 0.85
updateDisplayNameFunction · 0.85
loadAllFunction · 0.85
deleteAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected