I defined several tables in my module file: mymodule.py. For example I have
table T1 and T2 defined:
class T1(Base):
__tablename__ = 't1'
id = Column(Integer, primary_key = True)
name = Column(String(15))
class T2(Base):
__tablename__ = 't2'
id = Column(Integer, primary_key =
On Dec 5, 2012, at 2:56 PM, junepeach wrote:
I defined several tables in my module file: mymodule.py. For example I have
table T1 and T2 defined:
class T1(Base):
__tablename__ = 't1'
id = Column(Integer, primary_key = True)
name = Column(String(15))
class T2(Base):
Thank you very much for that resolution! I use these a lot.
On Wednesday, December 5, 2012 12:37:54 PM UTC-8, Michael Bayer wrote:
On Dec 5, 2012, at 2:56 PM, junepeach wrote:
I defined several tables in my module file: mymodule.py. For example I
have table T1 and T2 defined:
class