Below is a simplified case of a problem (bug?) I am running into. I
have a polymorphic schema using joined-table inheritance. In my OO
layer, a Group is an Agent, and a Lab is a Group. In the DB layer,
Lab doesn't actually need to hold any extra information so it doesn't
need a separate table.
6, 2008, at 1:24 PM, Jason Yamada-Hanff wrote:
mport sqlalchemy as sa
from sqlalchemy import types as t
from sqlalchemy import orm
engine = sa.create_engine('sqlite:///:memory:', echo=True)
metadata = sa.MetaData()
agents = sa.Table('agents', metadata,
sa.Column('id', t.Integer