I'm trying to add some scalar value column to the selection that uses Flask-SQLAlchemy pagination functionality. Currently i have:
records = Item.query.paginate(1, 3, False).items
How do i have to edit this code to add column that contains total number of pages (and ideally one more column with total records number)?