Skip to content

Commit

Permalink
fix: make enums in the Connection API public
Browse files Browse the repository at this point in the history
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 4, 2020
1 parent b97a9f2 commit 5254742
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 5254742

Please sign in to comment.