On Jul 12, 5:40 pm, Dipo Elegbede <[email protected]> wrote:
>
> Can I create two tables under a single Base class.
>
Yes.
If "Base" is the Base class then:
class Tab1(Base):
name = Column(String)
extension = Column(String)
class Tab2(Base):
name = Column(String)
extension = Column(String)
You can inherit multiple times.
--
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.