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

Function rowFilter

lib/index.es.js:3620–3631  ·  view source on GitHub ↗
(doc, selector, inMemoryFields)

Source from the content-addressed store, hash-verified

3618}
3619
3620function rowFilter(doc, selector, inMemoryFields) {
3621 return inMemoryFields.every(function (field) {
3622 var matcher = selector[field];
3623 var parsedField = parseField(field);
3624 var docFieldValue = getFieldFromDoc(doc, parsedField);
3625 if (isCombinationalField(field)) {
3626 return matchCominationalSelector(field, matcher, doc);
3627 }
3628
3629 return matchSelector(matcher, doc, parsedField, docFieldValue);
3630 });
3631}
3632
3633function matchSelector(matcher, doc, parsedField, docFieldValue) {
3634 if (!matcher) {

Callers 3

filterInMemoryFieldsFunction · 0.70
index.es.jsFile · 0.70

Calls 5

parseFieldFunction · 0.70
getFieldFromDocFunction · 0.70
isCombinationalFieldFunction · 0.70
matchSelectorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…