Replies: 1 comment
-
I created a draft PR: #2164 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a draft PR: #2164 |
Beta Was this translation helpful? Give feedback.
-
The
Paginator
(and its trait) is a useful tool. However, it makes using a simple "limit & offset" style approach (returning a total number of items) quite hard.I would want to have some kind of
LimiterTrait
, which can be used as follows:Alternatively, instead of returning the final result struct (
Limited
), it could also return aLimiter
, which provides functions to get the result as well as the total (similar toPaginator
). And then havePaginator
implemented on top of it.Beta Was this translation helpful? Give feedback.
All reactions