Closed staffler-xyz closed 6 years ago
The reason the request is there is to help generate the missing pieces for the request. What it does is just read the query parameters for the page and count to allow it to perform the fetch for the given page.
Implementing the database connection isn't need for something like this, unless I am miss understanding you. Can you maybe elaborate a bit more? 🙂
Oh i see, it is already using the database connection - thanks for your answer!
It should be possible to use pagination with a pooled connection (as this is required on some hosts, e.g. heroku):
It would be nice to maybe have an optional parameter
connection: Database
that can be passe to thepaginate
function.