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

Function buildCompareOp

packages/trailbase-db-collection/src/trailbase.ts:456–473  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

454}
455
456function buildCompareOp(name: string): CompareOp | undefined {
457 switch (name) {
458 case 'eq':
459 return 'equal'
460 case 'ne':
461 return 'notEqual'
462 case 'gt':
463 return 'greaterThan'
464 case 'gte':
465 return 'greaterThanEqual'
466 case 'lt':
467 return 'lessThan'
468 case 'lte':
469 return 'lessThanEqual'
470 default:
471 return undefined
472 }
473}
474
475function buildFilters<
476 TItem extends ShapeOf<TRecord>,

Callers 1

buildFiltersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected