libb.paged
- paged(order_by_df, per_page_df)[source]
Decorator to pass in default order/page/per page for pagination.
Steps performed:
Acquire the thread-local request object
Calculate pagination order by/offset/limit from request object
Patch the info into a database connection
- Parameters:
- Returns:
Decorator function.
Warning
Careful not to patch MULTIPLE queries within the controller.