R2DBC connection property names should match the JDBC ones #1614
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: cleanup
An internal cleanup or hygiene concern.
Currently the doc r2dbc.md does not specify that the options can be added to the URL. However it can and works.
Example:
r2dbc:gcp:mysql://<DB_USER>:<DB_PASS>@<CLOUD_SQL_CONNECTION_NAME>/<DATABASE_NAME>?TARGET_PRINCIPAL=<IAM_EMAIL>
To make the connection property names match the JDBC ones, we should update GcpConnectionFactoryProvider.java:
Also update the doc r2dbc.md.
Note: we need to support both the old options
TARGET_PRINCIPAL
and the common optionscloudSqlTargetPrincipal
just in case some customers figured out how to useTARGET_PRINCIPAL
in the r2dbc url.The text was updated successfully, but these errors were encountered: