Cloud Spanner supports these JDBC drivers:
- The Spanner JDBC driver, which is an open-source JDBC driver that is written, provided, and supported by Google, similar to the Cloud Client Libraries. This is the recommended JDBC driver for Cloud Spanner.
- The JDBC driver written by Simba, which is provided and supported by Google.
- The PostgreSQL JDBC driver in combination with PGAdapter. This driver only supports PostgreSQL-dialect databases.
|Spanner JDBC driver||Simba driver||PostgreSQL JDBC driver|
|Download||Maven Central||.zip download||Maven Central|
|Open source||Yes; Apache license||No||Yes; BSD 2-Clause|
For information on the Simba driver, see Simba JDBC driver FAQ.
For information about the PostgreSQL JDBC driver, see Connect JDBC to a PostgreSQL-dialect database.