MCPcopy
hub / github.com/tinyplex/tinybase / having

Function having

src/queries/index.ts:491–501  ·  view source on GitHub ↗
(
            arg1: Id | ((getSelectedOrGroupedCell: GetCell) => boolean),
            arg2?: Cell,
          )

Source from the content-addressed store, hash-verified

489 };
490
491 const having = (
492 arg1: Id | ((getSelectedOrGroupedCell: GetCell) => boolean),
493 arg2?: Cell,
494 ) =>
495 arrayPush(
496 havings,
497 isFunction(arg1)
498 ? arg1
499 : (getSelectedOrGroupedCell) =>
500 getSelectedOrGroupedCell(arg1) === arg2,
501 );
502
503 build({select, join, where, group, having, param});
504

Callers 4

writeGroupRowFunction · 0.70
queries.test.tsFile · 0.50
queries.test.tsFile · 0.50

Calls 2

arrayPushFunction · 0.90
isFunctionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…