Stay organized with collections
Save and categorize content based on your preferences.
This page describes the JDBC drivers that Spanner supports for
GoogleSQL-dialect databases and PostgreSQL-dialect databases. You can use these drivers to connect to
Spanner from Java applications. Spanner supports the
following 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, especially for the GoogleSQL
dialect. You can also use it to connect to PostgreSQL-dialect databases.
The PostgreSQL JDBC driver in combination with PGAdapter. This
driver only supports PostgreSQL-dialect databases.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-23 UTC."],[],[]]