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
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
I just have one simple question; when we should use the returned value of
.sqlmodel_update()
?I'm following the tutorial to update data as in the example code.
At the same time,
.sqlmodel_update()
also returnsself
. But I didn't find any usage of this value in the tutorial.sqlmodel/sqlmodel/main.py
Line 1008 in e7744e5
Given the context, I'm just curious why
.sqlmodel_update()
returns a value. It just aligns with.model_validate()
in Pydantic?Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.16
Python Version
3.11.11
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions