| Constructor and Description |
|---|
CloudSpannerDriver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsURL(String url) |
Connection |
connect(String url,
Properties info)
Connects to a Google Cloud Spanner database.
|
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
boolean |
jdbcCompliant() |
public Connection connect(String url, Properties info) throws SQLException
connect in interface Driverurl - Connection URL in the form
jdbc:cloudspanner://localhost;Project
=projectId;Instance=instanceId
;Database=databaseName;PvtKeyPath
=path_to_key_file;SimulateProductName=product_nameinfo - not usedSQLException - if an error occurs while connecting to Google Cloud Spannerpublic boolean acceptsURL(String url) throws SQLException
acceptsURL in interface DriverSQLExceptionpublic DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo in interface DriverSQLExceptionpublic int getMajorVersion()
getMajorVersion in interface Driverpublic int getMinorVersion()
getMinorVersion in interface Driverpublic boolean jdbcCompliant()
jdbcCompliant in interface Driverpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface DriverSQLFeatureNotSupportedExceptionCopyright © 2017. All rights reserved.