Get list of query results in Peewee

Viewed 8958

Considering to switch from SQLAlchemy to peewee but have a fundamental question as I'm not able to find an example of this. I want to execute a query that returns a list of the matched objects. What works is get which returns a single record:

Topping.select().where(Topping.id==jalapenos.id).get()

What I want to get is a list of results for which all examples indicate that I should iterate. Is there a way to get a list of results from:

Topping.select(Topping).where(Topping.stock > 0)
1 Answers
Related