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

Function matchesWhereOperators

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

Source from the content-addressed store, hash-verified

1121};
1122
1123const matchesWhereOperators = (
1124 value: unknown,
1125 filter: Readonly<Record<string, unknown>>,
1126): boolean => {
1127 for (const [operator, operand] of Object.entries(filter)) {
1128 if (!matchesWhereOperator(operator, value, operand)) return false;
1129 }
1130 return true;
1131};
1132
1133const rowMatchesPluginStorageWhere = (
1134 row: CoreRow<"plugin_storage">,

Callers 1

Calls 1

matchesWhereOperatorFunction · 0.85

Tested by

no test coverage detected