I have a base class/table with many common fields. Those fields are
enough to handle several Child classes. So, I can use single table
inheritance. But, I have a special case when another Child class has
other fields so I should join new table in this case.
Is this possible?
Pseudo code example:
Base:
id
type
common_data
Sub1(Base): # single table, type=1
pass
Sub2(Base): # single table, type=2
pass
Sub3(Base): # joined table, type=3
sub3_extra_data
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---