Google Spanner


Google Spanner


Setup Guide

Follow these steps to connect Google Spanner to your CData Connect Cloud account:

  1. Open the Connections page of the CData Connect Cloud dashboard.

  2. Click + Add Connection in the upper-right corner.

  3. Type Google Spanner into the search field, then click the data source name.

  4. On the Basic Settings tab of the new connection, enter a connection name or keep the default name.

  5. Select a Database Dialect. This is the dialect type of the connected database. The default value is correct for most connections.

  6. Select an Auth Scheme and follow the relevant instructions below.

Authentication Methods

OAuth

  1. Enter the following information:

    • Project Id—the ID of the project where your Google Spanner instance resides.

    • Database—the name of the database.

    • Instance Id—the ID of the Google Spanner instance to which you are connecting.

  2. Click Sign in with Google to connect securely through OAuth. This action opens the Google Spanner sign-in page on a new tab.

  3. Log into your Google Spanner account.

  4. At the top of the CData Connect Cloud Add Google Spanner Connection page, click Save & Test.

    • If the connection test succeeds, a message indicates that your connection has been created. The Status on the Edit Connection page also changes to Authenticated.

    • If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. CData Connect Cloud displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the Sign in button. Correct the errors and try again.

OAuthJWT

  1. Enter the following information:

    • OAuthJWT Cert—the content of the JSON certificate provided by Google.

    • OAuthJWT Subject—(optional) a subject value is required if the service account is part of a GSuite domain and you want to enable delegation.

    • Project Id—the ID of the project where your Google Spanner instance resides.

    • Database—the name of the database.

    • Instance Id—the ID of the Google Spanner instance to which you are connecting.

  2. At the top of the CData Connect Cloud Add Google Spanner Connection page, click Save & Test.

    • If the connection test succeeds, a message indicates that your connection has been created. The Status on the Edit Connection page also changes to Authenticated.

    • If the connection test fails, ensure that you entered your login information correctly with no stray spaces or other characters. CData Connect Cloud displays error messages under the required fields with missing data. Some data sources require that you sign in directly to the source website. If you did not, an error message appears under the Sign in button. Correct the errors and try again.

More Information

For more information about interactions between CData Connect Cloud and Google Spanner, see this information page.