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

Function isBinaryOp

packages/electric-db-collection/src/sql-compiler.ts:369–383  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

367}
368
369function isBinaryOp(name: string): boolean {
370 const binaryOps = [
371 `eq`,
372 `gt`,
373 `gte`,
374 `lt`,
375 `lte`,
376 `and`,
377 `or`,
378 `in`,
379 `like`,
380 `ilike`,
381 ]
382 return binaryOps.includes(name)
383}
384
385/**
386 * Check if operator is a comparison operator that takes two values

Callers 1

compileFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected