2010/2/26 Marcin Krol <[email protected]>:
> 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.

For adding, there's the .add_all(instances) method available.

There's no .delete_all() method available AFAIS.

Another one-liner alternative would be: map(session.delete, instances)

Or providing a patch implementing delete_all() I guess. Or waiting for
an explanation from Mike. :)

-- 
Alex
twitter.com/alexconrad

-- 
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.

Reply via email to