Struct google_api_proto::google::cloud::bigquery::connection::v1::CloudSpannerProperties
source · pub struct CloudSpannerProperties {
pub database: String,
pub use_parallelism: bool,
pub max_parallelism: i32,
pub use_serverless_analytics: bool,
pub use_data_boost: bool,
pub database_role: String,
}
Expand description
Connection properties specific to Cloud Spanner.
Fields§
§database: String
Cloud Spanner database in the form `project/instance/database’
use_parallelism: bool
If parallelism should be used when reading from Cloud Spanner
max_parallelism: i32
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: String
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.
Trait Implementations§
source§impl Clone for CloudSpannerProperties
impl Clone for CloudSpannerProperties
source§fn clone(&self) -> CloudSpannerProperties
fn clone(&self) -> CloudSpannerProperties
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloudSpannerProperties
impl Debug for CloudSpannerProperties
source§impl Default for CloudSpannerProperties
impl Default for CloudSpannerProperties
source§impl Message for CloudSpannerProperties
impl Message for CloudSpannerProperties
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CloudSpannerProperties
impl PartialEq for CloudSpannerProperties
source§fn eq(&self, other: &CloudSpannerProperties) -> bool
fn eq(&self, other: &CloudSpannerProperties) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CloudSpannerProperties
Auto Trait Implementations§
impl Freeze for CloudSpannerProperties
impl RefUnwindSafe for CloudSpannerProperties
impl Send for CloudSpannerProperties
impl Sync for CloudSpannerProperties
impl Unpin for CloudSpannerProperties
impl UnwindSafe for CloudSpannerProperties
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request