BigQuery Connection v1 API - Class CloudSpannerProperties (2.8.0)

public sealed class CloudSpannerProperties : IMessage<CloudSpannerProperties>, IEquatable<CloudSpannerProperties>, IDeepCloneable<CloudSpannerProperties>, IBufferMessage, IMessage

Reference documentation and code samples for the BigQuery Connection v1 API class CloudSpannerProperties.

Connection properties specific to Cloud Spanner.

Inheritance

object > CloudSpannerProperties

Namespace

Google.Cloud.BigQuery.Connection.V1

Assembly

Google.Cloud.BigQuery.Connection.V1.dll

Constructors

CloudSpannerProperties()

public CloudSpannerProperties()

CloudSpannerProperties(CloudSpannerProperties)

public CloudSpannerProperties(CloudSpannerProperties other)
Parameter
Name Description
other CloudSpannerProperties

Properties

Database

public string Database { get; set; }

Cloud Spanner database in the form `project/instance/database'

Property Value
Type Description
string

DatabaseRole

public string DatabaseRole { get; set; }

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.

REQUIRES: The database role name must start with a letter, and can only contain letters, numbers, and underscores.

Property Value
Type Description
string

MaxParallelism

public int MaxParallelism { get; set; }

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.

Property Value
Type Description
int

UseDataBoost

public bool UseDataBoost { get; set; }

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.

Property Value
Type Description
bool

UseParallelism

public bool UseParallelism { get; set; }

If parallelism should be used when reading from Cloud Spanner

Property Value
Type Description
bool

UseServerlessAnalytics

public bool UseServerlessAnalytics { get; set; }

If the serverless analytics service should be used to read data from Cloud Spanner. Note: use_parallelism must be set when using serverless analytics.

Property Value
Type Description
bool