ConnectionCloudSpanner

data class ConnectionCloudSpanner(val database: String, val databaseRole: String? = null, val maxParallelism: Int? = null, val useDataBoost: Boolean? = null, val useParallelism: Boolean? = null, val useServerlessAnalytics: Boolean? = null)

Constructors

Link copied to clipboard
constructor(database: String, databaseRole: String? = null, maxParallelism: Int? = null, useDataBoost: Boolean? = null, useParallelism: Boolean? = null, useServerlessAnalytics: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard
val databaseRole: String? = null

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. The database role name must start with a letter, and can only contain letters, numbers, and underscores. For more details, see https://cloud.google.com/spanner/docs/fgac-about.

Link copied to clipboard
val maxParallelism: Int? = null

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. useParallelism and useDataBoost must be set when setting max parallelism.

Link copied to clipboard
val useDataBoost: Boolean? = null

If set, the request will be executed via Spanner independent compute resources. use_parallelism must be set when using data boost.

Link copied to clipboard
val useParallelism: Boolean? = null

If parallelism should be used when reading from Cloud Spanner.

Link copied to clipboard

(Optional, Deprecated) If the serverless analytics service should be used to read data from Cloud Spanner. useParallelism must be set when using serverless analytics.