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

Function fetchDocAsynchronously

lib/index-browser.js:5519–5531  ·  view source on GitHub ↗
(metadata, row, winningRev$$1)

Source from the content-addressed store, hash-verified

5517 // if the user specifies include_docs=true, then we don't
5518 // want to block the main cursor while we're fetching the doc
5519 function fetchDocAsynchronously(metadata, row, winningRev$$1) {
5520 var key = metadata.id + "::" + winningRev$$1;
5521 docIdRevIndex.get(key).onsuccess = function onGetDoc(e) {
5522 row.doc = decodeDoc(e.target.result) || {};
5523 if (opts.conflicts) {
5524 var conflicts = collectConflicts(metadata);
5525 if (conflicts.length) {
5526 row.doc._conflicts = conflicts;
5527 }
5528 }
5529 fetchAttachmentsIfNecessary(row.doc, opts, txn);
5530 };
5531 }
5532
5533 function allDocsInner(winningRev$$1, metadata) {
5534 var row = {

Callers 1

allDocsInnerFunction · 0.70

Calls 4

decodeDocFunction · 0.70
collectConflictsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…