This repository was archived by the owner on Mar 26, 2026. It is now read-only.
feat: support endpoint connection URL property#1582
Merged
Conversation
Added support for an 'endpoint' connection URL property. This property can be added to either the Connection URL or the Properties object that is used to create a Connection, and can be used in combination with the autoConfigEmulator connection property to connect to an emulator instance that uses a randomly assigned port number. See https://github.com/googleapis/java-spanner-jdbc/blob/main/src/test/java/com/google/cloud/spanner/jdbc/ConcurrentTransactionOnEmulatorTest.java for an example on how to use this property.
gcf-merge-on-green Bot
pushed a commit
that referenced
this pull request
Apr 21, 2024
🤖 I have created a release *beep* *boop* --- ## [2.17.0](https://togithub.com/googleapis/java-spanner-jdbc/compare/v2.16.3...v2.17.0) (2024-04-21) ### Features * Concurrent transactions on emulator ([#1578](https://togithub.com/googleapis/java-spanner-jdbc/issues/1578)) ([0234fb3](https://togithub.com/googleapis/java-spanner-jdbc/commit/0234fb3eb43695c657b845946e6d1122827dcae5)) * Support endpoint connection URL property ([#1582](https://togithub.com/googleapis/java-spanner-jdbc/issues/1582)) ([b589c96](https://togithub.com/googleapis/java-spanner-jdbc/commit/b589c96a3187390e9ffa576d1e0ee285e223c559)) * Support max_commit_delay ([#1581](https://togithub.com/googleapis/java-spanner-jdbc/issues/1581)) ([06e43c0](https://togithub.com/googleapis/java-spanner-jdbc/commit/06e43c05a65f25da9a4dbff73e2e75c1b5ec155b)) * Support statement tags in hints ([#1579](https://togithub.com/googleapis/java-spanner-jdbc/issues/1579)) ([0c3aec1](https://togithub.com/googleapis/java-spanner-jdbc/commit/0c3aec1a5eec212e9ecacc7bec7f2a8980c9af78)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added support for an 'endpoint' connection URL property. This property can be added to either the Connection URL or the Properties object that is used to create a Connection, and can be used in combination with the autoConfigEmulator connection property to connect to an emulator instance that uses a randomly assigned port number.
See https://github.com/googleapis/java-spanner-jdbc/blob/main/src/test/java/com/google/cloud/spanner/jdbc/ConcurrentTransactionOnEmulatorTest.java for an example on how to use this property.