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

Function matchesWhereOperators

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

Source from the content-addressed store, hash-verified

1399};
1400
1401const matchesWhereOperators = (
1402 value: unknown,
1403 filter: Readonly<Record<string, unknown>>,
1404): boolean => {
1405 for (const [operator, operand] of Object.entries(filter)) {
1406 if (!matchesWhereOperator(operator, value, operand)) return false;
1407 }
1408 return true;
1409};
1410
1411const rowMatchesPluginStorageWhere = (
1412 row: CoreRow<"plugin_storage">,

Callers 1

Calls 1

matchesWhereOperatorFunction · 0.85

Tested by

no test coverage detected