MCPcopy Index your code
hub / github.com/apache/pouchdb / getMetaDoc

Function getMetaDoc

lib/index-browser.js:8445–8452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8443 const changes = docData[1];
8444
8445 function getMetaDoc() {
8446 if (isGenOne(changes)) {
8447 // generation 1, so we can safely assume initial state
8448 // for performance reasons (avoids unnecessary GETs)
8449 return Promise.resolve(defaultMetaDoc);
8450 }
8451 return view.db.get(metaDocId).catch(defaultsTo(defaultMetaDoc));
8452 }
8453
8454 function getKeyValueDocs(metaDoc) {
8455 if (!metaDoc.keys.length) {

Callers 1

getDocsToPersistFunction · 0.70

Calls 3

isGenOneFunction · 0.70
defaultsToFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…