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

Function createViewSignature

lib/index-browser.es.js:8010–8013  ·  view source on GitHub ↗
(mapFun, reduceFun)

Source from the content-addressed store, hash-verified

8008
8009/* create a string signature for a view so we can cache it and uniq it */
8010function createViewSignature(mapFun, reduceFun) {
8011 // the "undefined" part is for backwards compatibility
8012 return stringify(mapFun) + stringify(reduceFun) + 'undefined';
8013}
8014
8015async function createView(sourceDB, viewName, mapFun, reduceFun, temporary, localDocName) {
8016 const viewSignature = createViewSignature(mapFun, reduceFun);

Callers 1

createViewFunction · 0.70

Calls 1

stringifyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…