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

Function matchesWhereOperators

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

matchesWhereOperatorFunction · 0.85

Tested by

no test coverage detected