* Get the SQL symbol for a comparison operator
(name: string)
| 351 | * Get the SQL symbol for a comparison operator |
| 352 | */ |
| 353 | function getComparisonOp(name: string): string { |
| 354 | const ops: Record<string, string> = { |
| 355 | eq: `=`, |
| 356 | gt: `>`, |
| 357 | gte: `>=`, |
| 358 | lt: `<`, |
| 359 | lte: `<=`, |
| 360 | } |
| 361 | return ops[name]! |
| 362 | } |