ConnectionCloudSpanner class
Constructors
-
ConnectionCloudSpanner({required Input<String> database, Input<String?>? databaseRole, Input<int?>? maxParallelism, Input<bool?>? useDataBoost, Input<bool?>? useParallelism, Input<bool?>? useServerlessAnalytics})
-
Creates a new ConnectionCloudSpanner.
database Cloud Spanner database in the form project/instance/database'. [databaseRole] Cloud Spanner database role for fine-grained access control. The Cloud Spanner admin should have provisioned the database role with appropriate permissions, such as SELECTandINSERT. 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. [maxParallelism] 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. useParallelismanduseDataBoostmust be set when setting max parallelism. [useDataBoost] If set, the request will be executed via Spanner independent compute resources.useParallelism` must be set when using data boost.
useParallelism If parallelism should be used when reading from Cloud Spanner.
useServerlessAnalytics (Optional, Deprecated)
const
-
ConnectionCloudSpanner.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
database
→ Input<String>
-
Cloud Spanner database in the form `project/instance/database'.
final
-
databaseRole
→ Input<String?>?
-
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.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
maxParallelism
→ Input<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.
useParallelism and useDataBoost must be set when setting max parallelism.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
useDataBoost
→ Input<bool?>?
-
If set, the request will be executed via Spanner independent compute resources.
useParallelism must be set when using data boost.
final
-
useParallelism
→ Input<bool?>?
-
If parallelism should be used when reading from Cloud Spanner.
final
-
useServerlessAnalytics
→ Input<bool?>?
-
(Optional, Deprecated)
If the serverless analytics service should be used to read data from Cloud Spanner.
useParallelism must be set when using serverless analytics.
final