Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 19b1629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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;

Expand Down
Expand Up @@ -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");

Expand Down

0 comments on commit 19b1629

Please sign in to comment.