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

Function fetchAttachment

lib/index-browser.js:4807–4815  ·  view source on GitHub ↗
(doc, att)

Source from the content-addressed store, hash-verified

4805 }
4806
4807 function fetchAttachment(doc, att) {
4808 var attObj = doc._attachments[att];
4809 var digest = attObj.digest;
4810 var req = txn.objectStore(ATTACH_STORE).get(digest);
4811 req.onsuccess = function (e) {
4812 attObj.body = e.target.result.body;
4813 checkDone();
4814 };
4815 }
4816
4817 attachments.forEach(function (att) {
4818 if (opts.attachments && opts.include_docs) {

Callers 1

Calls 2

checkDoneFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…