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

Function matchesWhereOperators

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

matchesWhereOperatorFunction · 0.85

Tested by

no test coverage detected