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
As a Developer, I want to reuse the SQLModel object by deleting and recreating the object to the database so that I can use the object in an easy way for each re-operations.
Reuse operations are needed when using it in setup and teardown testing operations.
The solution that I can think of is, we try using a flag variable in the model if it got deleted or not. When it got refreshed again, we can replace the old info value in the object with the new one.
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
-
First Check
Commit to Help
Example Code
Description
Operating System
Linux, Windows
Operating System Details
No response
SQLModel Version
0.08
Python Version
Python 3.9.16
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions