To get foreign keys in my python app I am doing the following:

ForeignKeyConstraint(['USERID'], ['USERS.USERID'], ondelete="CASCADE")

and my mappers are nothing more than mapper(class, table).  Is there
anything wrong with not defining the relation in the mapper as well?  Also,
is there a way for sqlalchemy to manage cascades for databases that do not
support it (sql-lite, etc)?

--~--~---------~--~----~------------~-------~--~----~
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 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to