Skip to content

ORM: cursor-based pagination #18

@devituz

Description

@devituz

Goal

Add cursor pagination for large result sets where offset pagination becomes expensive. Should return opaque cursor strings so clients can iterate without exposing row IDs.

Acceptance criteria

  • query.PaginateCursor(ctx, q, size, cursor) returns {Items, NextCursor, HasMore}
  • Cursor is opaque (signed base64 of {column, value, direction})
  • Works on any orderable column, not just id
  • Doc example with API response shape

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions