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

Function matchesWhereOperators

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

Source from the content-addressed store, hash-verified

1493};
1494
1495const matchesWhereOperators = (
1496 value: unknown,
1497 filter: Readonly<Record<string, unknown>>,
1498): boolean => {
1499 for (const [operator, operand] of Object.entries(filter)) {
1500 if (!matchesWhereOperator(operator, value, operand)) return false;
1501 }
1502 return true;
1503};
1504
1505const rowMatchesPluginStorageWhere = (
1506 row: CoreRow<"plugin_storage">,

Callers 1

Calls 1

matchesWhereOperatorFunction · 0.85

Tested by

no test coverage detected