"Note that these clauses are not supported on SQLite, and require InnoDB tables when used with MySQL. They may also not be supported on other databases."
--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
ForeignKey('items.record_id', ondelete='CASCADE'))
Hi Mike. Thanks for your reply. That's great news!
Just want to clarify on which level such constraints will be placed? sqlalchemy or the underlying database?
So now if I want to use passive delete, which relies solely on the underlying SQLite database's constraints not the sqlalchemy's, I just need to set the foreign key argument like this:when I declare the classes. This will set the constraint on the underlying database. Is my understanding correct?ForeignKey('items.record_id', ondelete='CASCADE'))