Hi Michael,
That does exactly what I was after (and I've learned a little bit more
about sqalchemy!)
Thank you very much for your help.
On Thursday, 23 August 2012 19:13:27 UTC+1, Michael Bayer wrote:
On Aug 23, 2012, at 10:04 AM, Rob wrote:
Hi Michael,
I have a similar (but subtly
Hi Michael,
I have a similar (but subtly different) problem to this, trying to mix
single- and joined-table inheritance.
Essentially my model looks as follows:
Product(Base)
PhysicalProduct(Product)
NonPhysicalProduct(Product)
The Physical/NonPhysicalProduct use single table inheritance
here's a pastebin of it:
http://pastebin.com/z8XWsv2e
On Aug 16, 2011, at 7:42 PM, Michael Bayer wrote:
On Aug 16, 2011, at 5:37 PM, Mike Gilligan wrote:
I have a single table that looks similar to the following:
class Equipment(Base):
type = Column(CHAR(1), primary_key=True)
I have a single table that looks similar to the following:
class Equipment(Base):
type = Column(CHAR(1), primary_key=True)
sub_type = Column(CHAR(1), primary_key=True)
code = Column(CHAR(5), primary_key=True)
For historical purposes, I cannot modify this table. I would like to setup
On Aug 16, 2011, at 5:37 PM, Mike Gilligan wrote:
I have a single table that looks similar to the following:
class Equipment(Base):
type = Column(CHAR(1), primary_key=True)
sub_type = Column(CHAR(1), primary_key=True)
code = Column(CHAR(5), primary_key=True)
For