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

File idb.js

host/storage/src/main/idb.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/* IndexedDB async handlers; the worker parks the coro on the returned Promise so Python sees `idb_*` as yielding builtins composing with `gather` / `with_timeout`. */
2
3/* IDBRequest -> Promise. Native IndexedDB is callback-only; this is the standard one-liner wrapper. */
4const promisify = (req) => new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 8

allocDbFunction · 0.85
promisifyFunction · 0.85
dbFunction · 0.85
putMethod · 0.80
parseMethod · 0.45
openMethod · 0.45
containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected