Replies: 1 comment
-
I think it might be useful if you want to chain operations:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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