UNPKG

@tanstack/db

Version:

A reactive client store for building super fast apps on sync

18 lines (17 loc) • 928 B
import { BaseQueryBuilder } from './builder/index.js'; import { Collection, CollectionImpl } from '../collection/index.js'; /** The one source of an adapter's pooled view, without materializing it. */ export declare function getPooledLiveQuerySource(value: unknown): CollectionImpl<any, any, any, any, any> | undefined; /** * 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;