MCPcopy
hub / github.com/apache/pouchdb / openTransactionSafely

Function openTransactionSafely

lib/index-browser.js:4917–4927  ·  view source on GitHub ↗
(idb, stores, mode)

Source from the content-addressed store, hash-verified

4915}
4916
4917function openTransactionSafely(idb, stores, mode) {
4918 try {
4919 return {
4920 txn: idb.transaction(stores, mode)
4921 };
4922 } catch (err) {
4923 return {
4924 error: err
4925 };
4926 }
4927}
4928
4929var changesHandler = new Changes();
4930

Callers 4

startTransactionFunction · 0.70
idbAllDocsFunction · 0.70
changesFunction · 0.70
initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…