MCPcopy Index your code
hub / github.com/TanStack/ai / evaluateCondition

Function evaluateCondition

packages/ai-code-mode/models-eval/database-tools.ts:413–421  ·  view source on GitHub ↗
(
  row: Record<string, unknown>,
  where: Record<string, unknown>,
)

Source from the content-addressed store, hash-verified

411}
412
413function evaluateCondition(
414 row: Record<string, unknown>,
415 where: Record<string, unknown>,
416): boolean {
417 for (const [key, value] of Object.entries(where)) {
418 if (row[key] !== value) return false
419 }
420 return true
421}
422
423// ─── Tool definitions ──────────────────────────────────────────────────────
424

Callers 1

database-tools.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected