Eric 5037dc99ec
Create a num_items_and_pages on the paginator (#768)
* Create a `num_items_and_pages` on the `paginator`

This method allows us to get both number of items and pages of a
paginator with only one database query.

* Improve documentation

* Create a dedicated struct for items and pages number
2022-07-01 02:50:20 +08:00
..
2022-04-09 16:52:47 -07:00
2022-04-09 16:52:47 -07:00
2022-04-09 16:52:47 -07:00
2022-06-26 18:23:47 +08:00
2022-04-09 16:52:47 -07:00
2022-04-09 16:52:47 -07:00