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
// The reads and writes in this transaction must be able to be committed as an atomic “unit” with respect to reads and writes of all other concurrent serializable transactions without interleaving.
137
-
let transaction = client
138
-
.build_transaction()
139
-
.isolation_level(IsolationLevel::Serializable)
140
-
.start()
141
-
.await?;
134
+
let client = pool.get().await?;
142
135
143
-
let statement = transaction.prepare(UPDATE_ACCOUNTING_STATEMENT).await?;
136
+
let statement = client.prepare(UPDATE_ACCOUNTING_STATEMENT).await?;
0 commit comments