MCPcopy Create free account
hub / github.com/microsoft/SandDance / selectBetween

Function selectBetween

docs/tests/v2/es6/js/sanddance.js:148877–148904  ·  view source on GitHub ↗
(column, lowValue, highValue, lowOperator = '>=', highOperator = '<')

Source from the content-addressed store, hash-verified

148875}
148876
148877function selectBetween(column, lowValue, highValue, lowOperator = '>=', highOperator = '<') {
148878 const expressions = [];
148879
148880 if (lowValue !== undefined) {
148881 expressions.push({
148882 name: column.name,
148883 operator: lowOperator,
148884 value: lowValue
148885 });
148886 }
148887
148888 if (highValue !== undefined) {
148889 expressions.push({
148890 name: column.name,
148891 operator: highOperator,
148892 value: highValue
148893 });
148894 }
148895
148896 if (expressions.length > 1) {
148897 expressions[1].clause = '&&';
148898 }
148899
148900 const searchExpressionGroup = {
148901 expressions
148902 };
148903 return searchExpressionGroup;
148904}
148905
148906function selectBetweenAxis(axis, column, i) {
148907 const low = tickValue(axis, i);

Callers 2

selectBetweenAxisFunction · 0.70
selectBetweenFacetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected