MCPcopy Create free account
hub / github.com/TanStack/db / isBooleanComparisonOp

Function isBooleanComparisonOp

packages/electric-db-collection/src/sql-compiler.ts:399–401  ·  view source on GitHub ↗

* Checks if the operator is a comparison operator (excluding eq) * These operators don't work on booleans in PostgreSQL without casting

(name: string)

Source from the content-addressed store, hash-verified

397 * These operators don't work on booleans in PostgreSQL without casting
398 */
399function isBooleanComparisonOp(name: string): boolean {
400 return [`gt`, `gte`, `lt`, `lte`].includes(name)
401}
402
403function getOpName(name: string): string {
404 const opNames = {

Callers 1

compileFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected