Postgres SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
#4963
Answered
by
kairoswater-jason
kairoswater-jason
asked this question in
Q&A
-
BackendPostgreSQL Diesel version2.3 Diesel Featurespostgres, uuid, chrono, serde Operating System VersionNo response Third party librariesNo response What do you want to do?I'd like to create a transaction in postgres with the let ret = my_connection.transaction::<T, E, _>(|connection| {
connection.batch_execute("SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;");
//do transaction stuff now that the isolation level has been set
});Compile time errorNo response What code do you already have?No response Additional detailsNo response Checklist
|
Beta Was this translation helpful? Give feedback.
Answered by
kairoswater-jason
Feb 4, 2026
Replies: 1 comment
-
|
actually maybe this [1] is the proper way [1] https://docs.diesel.rs/main/diesel/pg/struct.TransactionBuilder.html#method.repeatable_read |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
weiznich
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
actually maybe this [1] is the proper way
[1] https://docs.diesel.rs/main/diesel/pg/struct.TransactionBuilder.html#method.repeatable_read