[sqlalchemy] linking one table/class to two other tables/classes

2015-03-19 Thread Tamas Hegedus
= Column(String) class B(DeclarativeBase): history = Column(Integer, ForeignKey('history.h_id')) myvar = Column(String) class History(DeclarativeBase): __tablename__='history' dt = Column(DateTime) myvar = Column(String) Thank a lot in advance, Tamas -- You received this message

[sqlalchemy] Re: subclassing Table

2008-07-17 Thread Tamas Hegedus
Thanks a lot! I think your suggestion will be ok for me for now. Have a good day, tamas On Thu, Jul 17, 2008 at 9:55 AM, Michael Bayer [EMAIL PROTECTED] wrote: On Jul 16, 2008, at 4:43 PM, Tamas wrote: Hi, I am not a professional coder; hobby-like thing. I would like to encapsulate

[sqlalchemy] subclassing Table

2008-07-16 Thread Tamas
? If no: what is the mistake I make? If yes: why? does Table class have some special decoration or something like that? How do you avoid to define your table in every script you write to use that table with its corresponding class? Thanks for your help, tamas