Skip to main content

Interface: Pagination

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

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:44

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


limit?

optional limit?: number;

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

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


offset?

optional offset?: number;

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

Zero-based offset. Mutually exclusive with cursor.