Skip to main content

Interface: Pagination

Defined in: packages/overcast-core/src/storage/index.ts:41

Cursor / offset pagination. Prefer the opaque cursor (keyset pagination): it is stable while new rows are inserted and stays fast on large tables. offset is offered only as a convenience for simple, shallow UI paging.

Properties​

cursor?​

optional cursor?: string;

Defined in: packages/overcast-core/src/storage/index.ts:45

Opaque cursor from a previous page's Page.nextCursor.


limit?​

optional limit?: number;

Defined in: packages/overcast-core/src/storage/index.ts:43

Max items to return. Implementations clamp to a sane ceiling.


offset?​

optional offset?: number;

Defined in: packages/overcast-core/src/storage/index.ts:47

Zero-based offset. Mutually exclusive with cursor.