Function
evaluateCondition
(
row: Record<string, unknown>,
where: Record<string, unknown>,
)
Source from the content-addressed store, hash-verified
| 411 | } |
| 412 | |
| 413 | function 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 | |
Tested by
no test coverage detected