Commit 95ca2f7
authored
chore: Use domain name from R2DBC connections when configuring the connector. (#2103)
Now, the connector will detect if the R2DBC HOST connection property contains a domain name or a
Cloud SQL instance name. If HOST has a domain name, the connector will look up the domain name to
determine the instance name.
For example, if the R2DBC url is set to r2dbc:gcp:mssql://<DB_USER>:<DB_PASS>@db.example.com/db,
the connector will lookup the TXT record for db.example.com. The record should contain a valid
Cloud SQL instance name.
Part of #20431 parent cb745f2 commit 95ca2f7
File tree
2 files changed
+26
-1
lines changed- r2dbc/core/src
- main/java/com/google/cloud/sql/core
- test/java/com/google/cloud/sql/core
2 files changed
+26
-1
lines changedLines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
127 | 138 | | |
128 | | - | |
129 | 139 | | |
130 | 140 | | |
131 | 141 | | |
| 142 | + | |
132 | 143 | | |
133 | 144 | | |
134 | 145 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
110 | 124 | | |
111 | 125 | | |
112 | 126 | | |
| |||
0 commit comments