[sqlalchemy] Re: Include total count in query results with limit and offset

2019-04-03 Thread Jonathan Vanasco
On Wednesday, April 3, 2019 at 1:40:16 PM UTC-4, Derek Lambert wrote: > > Thanks, that does make more sense. > > I ended up writing a little wrapper that allows me to create the query in > my service including the offset/limit and continue to add additional > filters, etc. when it's run. > I a

[sqlalchemy] Re: Include total count in query results with limit and offset

2019-04-03 Thread Derek Lambert
Thanks, that does make more sense. I ended up writing a little wrapper that allows me to create the query in my service including the offset/limit and continue to add additional filters, etc. when it's run. class PagedQuery: def __init__(self, query: orm.Query): self.logger: logging