Skip to main content

Type Alias: Page<T>

Page<T> = PromiseLike<{ data: T[] | null; error: unknown; }>

Defined in: src/lib/db/pageAll.ts:9

Fetch every row across PostgREST's 1000-row page cap.

Calls make(from, to) for each inclusive range until a page comes back short or empty (or errors). The caller supplies the range query, so this stays I/O-free and unit-testable. Use it anywhere a total must not silently truncate (reports, exports). Adapted from the report service's private helper; see ADR-0025 (no silent caps).

Type Parameters

T

T