DbSchema is a Google Cloud Spanner ER diagram database designer and query tool. Using DbSchema, you can design and document Google Cloud Spanner databases while connected to the database server or without a connection.
Next, you can share the design with the team using Git. The design model loaded in DbSchema can be compared with the database, synchronization scripts can be generated, and the schema can be deployed to any database server.
Choose "Connect to the database" or "New Model Connected to the Database" will let you select your database and open the Connection Dialog.
DbSchema automatically downloads the JDBC driver to connect to your database.
In the Connection Dialog window, select the JDBC URL you want to connect with. If your database is running in the cloud, choose Edit Manually and insert the JDBC URL from the cloud console.
Enter the host name, the authentication details, select your database as described in the Connection Dialog page.
In the DbSchema connection dialog you will have to specify the ProjectId, InstanceId and DatabaseId which can be fond in the Google console.
Also you will have to set an GOOGLE_APPLICATION_CREDENTIALS pointing to the authentication json file, which is generated on Google Credentials Console.