UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

12 lines (11 loc) 777 B
import { BasicExpression, OrderBy } from '../query/ir.js'; /** Build a single-column cursor; multi-column queries use prefix loading. */ export declare function buildCursor(orderBy: OrderBy, values: Array<unknown>): BasicExpression<boolean> | undefined; /** Build the equality range that closes the first ordered boundary term. */ export declare function buildCursorCurrent(orderBy: OrderBy, values: ReadonlyArray<unknown>): BasicExpression<boolean> | undefined; /** * Whether the public predicate IR can express this boundary's comparison. * Unsupported values must use an unbounded fetch rather than a provider order * that may differ from the local comparator. */ export declare function canExpressCursorOrder(orderBy: OrderBy, values: ReadonlyArray<unknown>): boolean;