-
Hi,@wu-clan However, an early commit refresh in the same transaction will return an exception.
|
Beta Was this translation helpful? Give feedback.
Answered by
downdawn
Jul 26, 2023
Replies: 2 comments 1 reply
-
sqlalchemy forbids this in asynchrony unless you put them in the same transaction, as in the paging interface, which transfers a db parameter instead of using the context manager |
Beta Was this translation helpful? Give feedback.
0 replies
-
solved Use db.flush() to flush to the database, but do not commit, keep the transaction |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
downdawn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
solved
Use db.flush() to flush to the database, but do not commit, keep the transaction