You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can create such object, but Tortoise has no methods to initialize it in DB, except early model initialization. It's not possible then to set argument that targets to generated models.
Possibly add method Model.initialize() or Model.generate_table()?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to create table in current connection with dynamically generated model?
I can create such object, but Tortoise has no methods to initialize it in DB, except early model initialization. It's not possible then to set argument that targets to generated models.
Possibly add method
Model.initialize()
orModel.generate_table()
?Beta Was this translation helpful? Give feedback.
All reactions