Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Use domain name from JDBC URL for Postgres and Mysql, Part of #2043 #2050

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hessjcg
Copy link
Collaborator

@hessjcg hessjcg commented Aug 8, 2024

When connecting to a Cloud SQL database using a domain name like db.example.com,
you may now set the domain name in the JDBC URL. For example, you can use a URL like
"jdbc:mysql://db.example.com/my-schema?socketFactory=com.google.cloud.sql.mysql.SocketFactory"

The socket factory will detect "db.example.com" and look up the TXT record to resolve
the instance name.

Adding this capability to the SQLServer driver will be a separate PR.

See #2043 for the whole feature definition.

@hessjcg hessjcg changed the base branch from main to gh-2043-java-dns-wrapper August 8, 2024 19:48
@hessjcg hessjcg changed the title wip: Use domain name from JDBC URL for SQL Server wip: Use domain name from JDBC URL for Postgres and Mysql Aug 8, 2024
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch 4 times, most recently from 7901caf to c251493 Compare August 13, 2024 18:38
@hessjcg hessjcg changed the title wip: Use domain name from JDBC URL for Postgres and Mysql chore: Use domain name from JDBC URL for Postgres and Mysql, Part of #2043 Aug 13, 2024
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch 3 times, most recently from 040a9d1 to f9960d9 Compare August 16, 2024 15:26
@hessjcg hessjcg force-pushed the gh-2043-java-dns-wrapper branch from b69274f to 35ceacf Compare August 30, 2024 17:54
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from f9960d9 to e8f506c Compare August 30, 2024 17:54
Base automatically changed from gh-2043-java-dns-wrapper to main August 30, 2024 18:01
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from e8f506c to 3bd264a Compare September 27, 2024 21:22
@hessjcg hessjcg marked this pull request as ready for review September 27, 2024 21:25
@hessjcg hessjcg requested a review from a team as a code owner September 27, 2024 21:25
…2043.

When connecting to a Cloud SQL database using a domain name like `db.example.com`, 
you may now set the domain name in the JDBC URL. For example, you can use a URL like
"jdbc:mysql://db.example.com/my-schema?socketFactory=socketFactory=com.google.cloud.sql.mysql.SocketFactory"

The socket factory will detect "db.example.com" and look up the TXT record to resolve
the instance name. 

See #2043 for the whole feature definition.
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from 3bd264a to fe70759 Compare October 1, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants