Skip to content

Pagination keyset2 #877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Pagination keyset2 #877

wants to merge 7 commits into from

Conversation

HayimShaul
Copy link

added keyset pagination

Hayim Shaul added 2 commits April 2, 2025 14:53
Signed-off-by: Hayim Shaul <[email protected]>
Signed-off-by: Hayim Shaul <[email protected]>
Hayim Shaul added 4 commits April 2, 2025 15:30
@@ -56,6 +56,22 @@ func ReadFirst[T any](it Iterator[*T], limit int) ([]T, error) {
return items, nil
}

func ReadLast[T any](it Iterator[*T]) (*T, *sliceIterator[*T], error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use ReadAll

@alexandrosfilios alexandrosfilios marked this pull request as draft April 10, 2025 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants