[sqlalchemy] Ignoring declarative inheritance joins

2013-03-12 Thread chris . r . mcguire
Hi all, What is the best way to avoid querying the base table in an joined table inheritance? For instance with a class setup like: class A(Base): __tablename__ = 'table_a' id = Column(Integer, primary_key=True) name = Column(String(50)) class B(A): __tablename__ =

Re: [sqlalchemy] Ignoring declarative inheritance joins

2013-03-12 Thread Michael Bayer
On Mar 12, 2013, at 4:50 PM, chris.r.mcgu...@gmail.com wrote: Hi all, What is the best way to avoid querying the base table in an joined table inheritance? For instance with a class setup like: class A(Base): __tablename__ = 'table_a' id = Column(Integer,