Exactly what I was looking for and it works (even applied to my project).
I tried so many things these last days and the solution now looks so simple.
Thank you very much !
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code,
Version of Python : 3.4.0
Version of SQLAlchemy : 1.2.0b2
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable
Example. See http://stackoverflow.com/help/mcve for a
On Jul 12, 5:40 pm, Dipo Elegbede dipo.elegb...@gmail.com 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 =
On Jul 12, 5:40 pm, Dipo Elegbede dipo.elegb...@gmail.com wrote:
I would appreciate if you point me to any relevant documentation.
http://www.sqlalchemy.org/docs/orm/extensions/declarative.html?highlight=declarative_base
--
You received this message because you are subscribed to the Google