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 used the GitHub search to find a similar question and didn't find it.
I searched the SQLModel documentation, with the integrated search.
I already searched in Google "How to X in SQLModel" and didn't find any information.
I already read and followed all the tutorial in the docs and didn't find an answer.
I already checked if it is not related to SQLModel but to Pydantic.
I already checked if it is not related to SQLModel but to SQLAlchemy.
Commit to Help
I commit to help with one of those options 👆
Example Code
Notrelevant
Description
Hi,
I want to perform a "select for update" query with sqlmodel, I know that in SqlAlchemy this is done with .with_for_update(). However something like this does not work:
I already tried to change session.query() to session.exec() and session.execute() - but that doesn't solve it.
Is there something in the documentation that I am missing?
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
Hi,
I want to perform a "select for update" query with
sqlmodel
, I know that inSqlAlchemy
this is done with.with_for_update()
. However something like this does not work:BomModel
is defined as:and
BomSchema
asI already tried to change
session.query()
tosession.exec()
andsession.execute()
- but that doesn't solve it.Is there something in the documentation that I am missing?
Operating System
Linux
Operating System Details
No response
SQLModel Version
0.0.22
Python Version
3.9
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions