UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

16 lines (15 loc) • 718 B
import { BaseQueryBuilder } from "./builder/index.cjs"; import { Collection } from "../collection/index.cjs"; /** * The identity of a query a partition can serve with no residual conjunct: * its source and its `eq` fields and literals, which determine its rows. * Undefined for any other query, which keeps the full structural identity. */ export declare function getPooledQueryIdentity(query: BaseQueryBuilder): string | undefined; /** * A pooled view for a query a partition can serve, or undefined. The view is * typed as the Collection it stands in for. */ export declare function createPooledLiveQuery(query: BaseQueryBuilder, { gcTime }?: { gcTime?: number; }): Collection<any, any, any> | undefined;