In my application, a lot of models have a deleted_at field which is 
either null or set to a date. And in most places where i select from 
those models, i only need the instances where deleted_at is null. Of 
course, i can do it manually by adding just another filter_at on every 
ORM operation, but that's error-prone and breaks the DRY severely.

But i've read on the sqlalchemy website that it's quite extensible, so 
how can i do it automatically for certain tables? I'm looking for 
something like Django ORM's custom managers.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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