|
76 | 76 | * <li>credentials (String): URL for the credentials file to use for the connection. If you do not |
77 | 77 | * specify any credentials at all, the default credentials of the environment as returned by |
78 | 78 | * {@link GoogleCredentials#getApplicationDefault()} is used. |
| 79 | + * <li>autocommit (boolean): Sets the initial autocommit mode for the connection. Default is true. |
| 80 | + * <li>readonly (boolean): Sets the initial readonly mode for the connection. Default is false. |
| 81 | + * <li>autoConfigEmulator (boolean): Automatically configure the connection to try to connect to |
| 82 | + * the Cloud Spanner emulator. You do not need to specify any host or port in the connection |
| 83 | + * string as long as the emulator is running on the default host/port (localhost:9010). The |
| 84 | + * instance and database in the connection string will automatically be created if these do |
| 85 | + * not yet exist on the emulator. This means that you do not need to execute any `gcloud` |
| 86 | + * commands on the emulator to create the instance and database before you can connect to it. |
| 87 | + * <li>usePlainText (boolean): Sets whether the JDBC connection should establish an unencrypted |
| 88 | + * connection to the server. This option can only be used when connecting to a local emulator |
| 89 | + * that does not require an encrypted connection, and that does not require authentication. |
| 90 | + * <li>optimizerVersion (string): The query optimizer version to use for the connection. The value |
| 91 | + * must be either a valid version number or <code>LATEST</code>. If no value is specified, the |
| 92 | + * query optimizer version specified in the environment variable <code> |
| 93 | + * SPANNER_OPTIMIZER_VERSION</code> is used. If no query optimizer version is specified in the |
| 94 | + * connection URL or in the environment variable, the default query optimizer version of Cloud |
| 95 | + * Spanner is used. |
79 | 96 | * <li>oauthtoken (String): A valid OAuth2 token to use for the JDBC connection. The token must |
80 | 97 | * have been obtained with one or both of the scopes |
81 | 98 | * 'https://www.googleapis.com/auth/spanner.admin' and/or |
82 | 99 | * 'https://www.googleapis.com/auth/spanner.data'. If you specify both a credentials file and |
83 | 100 | * an OAuth token, the JDBC driver will throw an exception when you try to obtain a |
84 | 101 | * connection. |
85 | | - * <li>autocommit (boolean): Sets the initial autocommit mode for the connection. Default is true. |
86 | | - * <li>readonly (boolean): Sets the initial readonly mode for the connection. Default is false. |
87 | 102 | * <li>retryAbortsInternally (boolean): Sets the initial retryAbortsInternally mode for the |
88 | 103 | * connection. Default is true. @see {@link |
89 | 104 | * com.google.cloud.spanner.jdbc.CloudSpannerJdbcConnection#setRetryAbortsInternally(boolean)} |
|
93 | 108 | * <li>maxSessions (int): Sets the maximum number of sessions in the backing session pool. |
94 | 109 | * Defaults to 400. |
95 | 110 | * <li>numChannels (int): Sets the number of gRPC channels to use. Defaults to 4. |
96 | | - * <li>usePlainText (boolean): Sets whether the JDBC connection should establish an unencrypted |
97 | | - * connection to the server. This option can only be used when connecting to a local emulator |
98 | | - * that does not require an encrypted connection, and that does not require authentication. |
99 | | - * <li>optimizerVersion (string): The query optimizer version to use for the connection. The value |
100 | | - * must be either a valid version number or <code>LATEST</code>. If no value is specified, the |
101 | | - * query optimizer version specified in the environment variable <code> |
102 | | - * SPANNER_OPTIMIZER_VERSION</code> is used. If no query optimizer version is specified in the |
103 | | - * connection URL or in the environment variable, the default query optimizer version of Cloud |
104 | | - * Spanner is used. |
105 | 111 | * </ul> |
106 | 112 | */ |
107 | 113 | public class JdbcDriver implements Driver { |
|
0 commit comments