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

Function createViewSignature

lib/index.es.js:8047–8050  ·  view source on GitHub ↗
(mapFun, reduceFun)

Source from the content-addressed store, hash-verified

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