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

Function matchesWhereOperators

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

Source from the content-addressed store, hash-verified

1113};
1114
1115const matchesWhereOperators = (
1116 value: unknown,
1117 filter: Readonly<Record<string, unknown>>,
1118): boolean => {
1119 for (const [operator, operand] of Object.entries(filter)) {
1120 if (!matchesWhereOperator(operator, value, operand)) return false;
1121 }
1122 return true;
1123};
1124
1125const rowMatchesPluginStorageWhere = (
1126 row: CoreRow<"plugin_storage">,

Callers 1

Calls 1

matchesWhereOperatorFunction · 0.85

Tested by

no test coverage detected