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
feat: specify isolation level per transaction (#3704)
* feat: add default_isolation_level connection property
Add a `default_isolation_level` property for the Connection API.
This property will be used by the JDBC driver and PGAdapter to
set a default isolation level for all read/write transactions
that are executed by a connection.
Support for setting an isolation level for a single transaction
will be added in a follow-up pull request.
* feat: specify isolation level per transaction
Add an option to specify the isolation level for a single transaction.
This isolation level overrides the current default isolation level that
has been set for the connection. This option only has an effect for
read/write transactions.
* chore: make a couple of test classes public
Check if making a couple of test classes public fixes the weird native image
build error.
* build: register ClientSideStatementBeginExecutor for reflection
Copy file name to clipboardExpand all lines: google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ClientSideStatementValueConverters.java
+6-1
Original file line number
Diff line number
Diff line change
@@ -394,7 +394,7 @@ static class IsolationLevelConverter
Copy file name to clipboardExpand all lines: google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ConnectionStatementExecutorImpl.java
+8-2
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,7 @@
112
112
importcom.google.spanner.v1.PlanNode;
113
113
importcom.google.spanner.v1.QueryPlan;
114
114
importcom.google.spanner.v1.RequestOptions;
115
+
importcom.google.spanner.v1.TransactionOptions;
115
116
importjava.time.Duration;
116
117
importjava.util.ArrayList;
117
118
importjava.util.Collections;
@@ -443,8 +444,13 @@ public StatementResult statementShowExcludeTxnFromChangeStreams() {
0 commit comments