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

Function createViewSignature

lib/index.js:8052–8055  ·  view source on GitHub ↗
(mapFun, reduceFun)

Source from the content-addressed store, hash-verified

8050
8051/* create a string signature for a view so we can cache it and uniq it */
8052function createViewSignature(mapFun, reduceFun) {
8053 // the "undefined" part is for backwards compatibility
8054 return stringify(mapFun) + stringify(reduceFun) + 'undefined';
8055}
8056
8057async function createView(sourceDB, viewName, mapFun, reduceFun, temporary, localDocName) {
8058 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…