Skip to content

Allow cursor based pagination #59

Open
@anis-campos

Description

@anis-campos

Hi,

Thanks for the good work, this version lib promising, it provides some useful perks compared to acsylla, mainly how it handles the dependency to scylla driver and the class parsing of the results.

However there is one thing missing, the cursor/state based pagination that is provided by scylla and possible in acsylla

Would it be possible to implement a cursor based pagination.

I'm thinking something like

class PaginationResult[T]:
   items: [T]
   has_more: bool
   state: bytes

async def execute_paginated(statement:str, page_size:int) -> PaginationResult: ...

WDYT ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions