Alexandre Conrad wrote:
How about just a:cities = session.query(City).all() for city in cities: session.delete(city) or for city in session.query(City): #actually fires the query session.delete(city)
Sure, it can be done and I'm doing that: I'm just saying that it wouldn't hurt if you could pass a list to session.add or session.delete instead of handing objects over one by one.
Regards, mk -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
