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

Function createViewSignature

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

Source from the content-addressed store, hash-verified

8012
8013/* create a string signature for a view so we can cache it and uniq it */
8014function createViewSignature(mapFun, reduceFun) {
8015 // the "undefined" part is for backwards compatibility
8016 return stringify(mapFun) + stringify(reduceFun) + 'undefined';
8017}
8018
8019async function createView(sourceDB, viewName, mapFun, reduceFun, temporary, localDocName) {
8020 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…