First Check
Commit to Help
Example Code
Example code from the blog:
Base = declarative_base()
class MyTableClass(Base):
__tablename__ = 'myTableName'
myFirstCol = Column(Integer, primary_key=True)
mySecondCol = Column(Integer, primary_key=True)
Base.metadata.create_table(engine)
attr_dict = {'__tablename__': 'myTableName',
'myFirstCol': Column(Integer, primary_key=True),
'mySecondCol': Column(Integer)}
Description
I am looking if SQLModel supports dynamic schema like SQLAlchemy does. Example: https://sparrigan.github.io/sql/sqla/2016/01/03/dynamic-tables.html
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
3.9.0
Additional Context
No response
First Check
Commit to Help
Example Code
Description
I am looking if SQLModel supports dynamic schema like SQLAlchemy does. Example: https://sparrigan.github.io/sql/sqla/2016/01/03/dynamic-tables.html
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
3.9.0
Additional Context
No response