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

Function matchesWhereOperators

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

Source from the content-addressed store, hash-verified

1479};
1480
1481const matchesWhereOperators = (
1482 value: unknown,
1483 filter: Readonly<Record<string, unknown>>,
1484): boolean => {
1485 for (const [operator, operand] of Object.entries(filter)) {
1486 if (!matchesWhereOperator(operator, value, operand)) return false;
1487 }
1488 return true;
1489};
1490
1491const rowMatchesPluginStorageWhere = (
1492 row: CoreRow<"plugin_storage">,

Callers 1

Calls 1

matchesWhereOperatorFunction · 0.85

Tested by

no test coverage detected