Class CloudSpannerProperties (1.17.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.