Class DefaultCloudSqlJdbcInfoProvider
java.lang.Object
com.google.cloud.spring.autoconfigure.sql.DefaultCloudSqlJdbcInfoProvider
- All Implemented Interfaces:
CloudSqlJdbcInfoProvider
Provides default JDBC driver class name and constructs the JDBC URL for Cloud SQL v2 when running
on local laptop, or in a VM-based environment (e.g., Google Compute Engine, Google Container
Engine).
-
Constructor Summary
ConstructorDescriptionDefaultCloudSqlJdbcInfoProvider
(GcpCloudSqlProperties properties, DatabaseType databaseType) -
Method Summary
-
Constructor Details
-
DefaultCloudSqlJdbcInfoProvider
-
-
Method Details
-
getJdbcDriverClass
- Specified by:
getJdbcDriverClass
in interfaceCloudSqlJdbcInfoProvider
-
getJdbcUrl
- Specified by:
getJdbcUrl
in interfaceCloudSqlJdbcInfoProvider
-