RE: [sqlalchemy] Many2many, referential integrity and introspection

2013-12-08 Thread Alexey Vihorev
sqlalchemy@googlegroups.com] On Behalf Of Michael Bayer Sent: Sunday, December 08, 2013 1:46 AM To: sqlalchemy@googlegroups.com Subject: Re: [sqlalchemy] Many2many, referential integrity and introspection On Dec 7, 2013, at 6:18 PM, Alexey Vihorev wrote: In my case, table 'tags'

Re: [sqlalchemy] Many2many, referential integrity and introspection

2013-12-07 Thread Michael Bayer
can delete the tag and the system just erases all traces > of it from all products. > > > From: sqlalchemy@googlegroups.com [mailto:sqlalchemy@googlegroups.com] On > Behalf Of Michael Bayer > Sent: Saturday, December 07, 2013 11:51 PM > To: sqlalchemy@googlegroups.com &g

RE: [sqlalchemy] Many2many, referential integrity and introspection

2013-12-07 Thread Alexey Vihorev
egroups.com] On Behalf Of Michael Bayer Sent: Saturday, December 07, 2013 11:51 PM To: sqlalchemy@googlegroups.com Subject: Re: [sqlalchemy] Many2many, referential integrity and introspection On Dec 7, 2013, at 2:22 PM, Alexey Vihorev wrote: Here is the full code: from sqlalchemy.

Re: [sqlalchemy] Many2many, referential integrity and introspection

2013-12-07 Thread Michael Bayer
On Dec 7, 2013, at 2:22 PM, Alexey Vihorev wrote: > Here is the full code: > > from sqlalchemy.ext.declarative import declarative_base > from sqlalchemy import * > from sqlalchemy.orm import relationship, sessionmaker > > Base = declarative_base() > > product_tags = Table( > 'product_t