Skip to main content

Function: pageAllResult()

pageAllResult<T>(make, size?): Promise<{ error: unknown; failed: boolean; rows: T[]; }>

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

Same loop, but says whether it stopped because the read FAILED rather than because the rows ran out. A caller that renders per-section degraded states (the AR page) has to tell "no activity logged yet" from "the activity table didn't answer" — [] means both to pageAll. rows still carries whatever pages came back before the failure.

The error itself comes back too, for a caller that needs to distinguish which failure it was.

Type Parameters

T

T

Parameters

make

(from, to) => Page<T>

size?

number = 1000

Returns

Promise<{ error: unknown; failed: boolean; rows: T[]; }>