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

Function getComparisonOp

packages/powersync-db-collection/src/sqlite-compiler.ts:353–362  ·  view source on GitHub ↗

* Get the SQL symbol for a comparison operator

(name: string)

Source from the content-addressed store, hash-verified

351 * Get the SQL symbol for a comparison operator
352 */
353function 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}

Callers 1

compileFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected