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

Function selectBetween

docs/app/js/sanddance-app.js:10330–10347  ·  view source on GitHub ↗
(column, lowValue, highValue, lowOperator = ">=", highOperator = "<")

Source from the content-addressed store, hash-verified

10328 if (result.tick) return selectExact(column, result.value);
10329}
10330function selectBetween(column, lowValue, highValue, lowOperator = ">=", highOperator = "<") {
10331 const expressions = [];
10332 if (lowValue !== undefined) expressions.push({
10333 name: column.name,
10334 operator: lowOperator,
10335 value: lowValue
10336 });
10337 if (highValue !== undefined) expressions.push({
10338 name: column.name,
10339 operator: highOperator,
10340 value: highValue
10341 });
10342 if (expressions.length > 1) expressions[1].clause = "&&";
10343 const searchExpressionGroup = {
10344 expressions
10345 };
10346 return searchExpressionGroup;
10347}
10348function selectBetweenAxis(axis, column, i) {
10349 const low = tickValue(axis, i);
10350 const high = tickValue(axis, i + 1);

Callers 1

selectBetweenAxisFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected