Skip to content
Permalink
Browse files
fix: make enums in the Connection API public (#579)
Some enums were defined as package-private, but these were used in the
public API of the Connection API. That made the specific methods in the
Connection API unusable from outside the Spanner client library.

Towards #253
  • Loading branch information
olavloite committed Nov 5, 2020
1 parent 643b116 commit 19b1629450a8956b810e27e5d6ab8532dec75267
@@ -17,7 +17,7 @@
package com.google.cloud.spanner.connection;

/** Enum used to define the behavior of DML statements in autocommit mode */
enum AutocommitDmlMode {
public enum AutocommitDmlMode {
TRANSACTIONAL,
PARTITIONED_NON_ATOMIC;

@@ -17,7 +17,7 @@
package com.google.cloud.spanner.connection;

/** Enum used to define the transaction type of a {@link Connection} */
enum TransactionMode {
public enum TransactionMode {
READ_ONLY_TRANSACTION("READ ONLY"),
READ_WRITE_TRANSACTION("READ WRITE");

0 comments on commit 19b1629

Please sign in to comment.