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

Function getMetaDoc

lib/index.es.js:8478–8485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8476 const changes = docData[1];
8477
8478 function getMetaDoc() {
8479 if (isGenOne(changes)) {
8480 // generation 1, so we can safely assume initial state
8481 // for performance reasons (avoids unnecessary GETs)
8482 return Promise.resolve(defaultMetaDoc);
8483 }
8484 return view.db.get(metaDocId).catch(defaultsTo(defaultMetaDoc));
8485 }
8486
8487 function getKeyValueDocs(metaDoc) {
8488 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…