Skip to content

ORM: cursor-based pagination #18

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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