MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / db

Function db

host/storage/src/main/state.js:7–12  ·  view source on GitHub ↗
(h)

Source from the content-addressed store, hash-verified

5
6 const allocDb = (idb) => { dbs.push(idb); return dbs.length - 1; };
7 const db = (h) => {
8 if (h < 0 || h >= dbs.length || dbs[h] === null) {
9 throw new Error('invalid db handle: ' + h);
10 }
11 return dbs[h];
12 };
13
14 return { dbs, allocDb, db };
15};

Callers 1

idb.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected