# Class CloudSpannerProperties (1.22.0)

1.22.0 (latest) 1.21.0 1.20.0 1.19.0 1.18.3 1.17.0 1.16.1 1.15.5 1.14.0 1.13.2 1.12.1 1.11.0 1.10.0 1.9.1 1.8.0 1.7.3 1.6.0 1.5.1 1.4.0 1.3.4 1.2.3 1.1.1 1.0.1 0.3.2 0.2.0 0.1.0

    CloudSpannerProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Connection properties specific to Cloud Spanner.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `database` | `str` Cloud Spanner database in the form \\\`project/instance/database' |
| `use_parallelism` | `bool` If parallelism should be used when reading from Cloud Spanner |
| `max_parallelism` | `int` Allows setting max parallelism per query when executing on Spanner independent compute resources. If unspecified, default values of parallelism are chosen that are dependent on the Cloud Spanner instance configuration. REQUIRES: `use_parallelism` must be set. REQUIRES: Either `use_data_boost` or `use_serverless_analytics` must be set. |
| `use_serverless_analytics` | `bool` If the serverless analytics service should be used to read data from Cloud Spanner. Note: `use_parallelism` must be set when using serverless analytics. |
| `use_data_boost` | `bool` If set, the request will be executed via Spanner independent compute resources. REQUIRES: `use_parallelism` must be set. NOTE: `use_serverless_analytics` will be deprecated. Prefer `use_data_boost` over `use_serverless_analytics`. |
| `database_role` | `str` Optional. Cloud Spanner database role for fine-grained access control. The Cloud Spanner admin should have provisioned the database role with appropriate permissions, such as `SELECT` and `INSERT`. Other users should only use roles provided by their Cloud Spanner admins. For more details, see \[About fine-grained access control\] (https://cloud.google.com/spanner/docs/fgac-about). REQUIRES: The database role name must start with a letter, and can only contain letters, numbers, and underscores. |