MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / matchesWhereOperators

Function matchesWhereOperators

packages/core/sdk/src/executor.ts:876–884  ·  view source on GitHub ↗
(
  value: unknown,
  filter: Readonly<Record<string, unknown>>,
)

Source from the content-addressed store, hash-verified

874};
875
876const matchesWhereOperators = (
877 value: unknown,
878 filter: Readonly<Record<string, unknown>>,
879): boolean => {
880 for (const [operator, operand] of Object.entries(filter)) {
881 if (!matchesWhereOperator(operator, value, operand)) return false;
882 }
883 return true;
884};
885
886const rowMatchesPluginStorageWhere = (
887 row: CoreRow<"plugin_storage">,

Callers 1

Calls 1

matchesWhereOperatorFunction · 0.85

Tested by

no test coverage detected