JDBC drivers

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 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
Written by Google Simba PostgreSQL
Support Google Google Google
Open source Yes; Apache license No Yes; BSD 2-Clause

For information about the Spanner JDBC driver, see Spanner JDBC driver FAQ and How to use the Spanner JDBC driver.

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.