Actually, I ended up writing a method and not using a relation.
The conditions look like this:

    # SQLite: DATE(CURRENT_TIMESTAMP, '-30 days')
    deleted_threshold = func.date(func.current_timestamp(), '-30
days')
    # MYSQL: SUBDATE(NOW(), 30) ;
    deleted_threshold = func.subdate(func.now(), 30);

These could also be used in a relation.
--~--~---------~--~----~------------~-------~--~----~
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