Struct google_cloud_spanner::transaction_ro::BatchReadOnlyTransaction [−][src]
pub struct BatchReadOnlyTransaction { /* fields omitted */ }Expand description
BatchReadOnlyTransaction is a ReadOnlyTransaction that allows for exporting arbitrarily large amounts of data from Cloud Spanner databases. BatchReadOnlyTransaction partitions a read/query request. Read/query request can then be executed independently over each partition while observing the same snapshot of the database.
Implementations
pub async fn begin(
session: ManagedSession,
tb: TimestampBound,
options: CallOptions
) -> Result<BatchReadOnlyTransaction, Status>
partition_read returns a list of Partitions that can be used to read rows from the database. These partitions can be executed across multiple processes, even across different machines. The partition size and count hints can be configured using PartitionOptions.
pub async fn partition_read_with_option<T, C, K>(
&mut self,
table: T,
columns: Vec<C>,
keys: K,
po: Option<PartitionOptions>,
ro: ReadOptions
) -> Result<Vec<Partition<TableReader>>, Status> where
T: Into<String> + Clone,
C: Into<String>,
K: Into<KeySet> + Clone,
pub async fn partition_read_with_option<T, C, K>(
&mut self,
table: T,
columns: Vec<C>,
keys: K,
po: Option<PartitionOptions>,
ro: ReadOptions
) -> Result<Vec<Partition<TableReader>>, Status> where
T: Into<String> + Clone,
C: Into<String>,
K: Into<KeySet> + Clone,
partition_read returns a list of Partitions that can be used to read rows from the database. These partitions can be executed across multiple processes, even across different machines. The partition size and count hints can be configured using PartitionOptions.
pub async fn partition_query(
&mut self,
stmt: Statement
) -> Result<Vec<Partition<StatementReader>>, Status>
pub async fn partition_query(
&mut self,
stmt: Statement
) -> Result<Vec<Partition<StatementReader>>, Status>
partition_query returns a list of Partitions that can be used to execute a query against the database.
pub async fn partition_query_with_option(
&mut self,
stmt: Statement,
po: Option<PartitionOptions>,
qo: QueryOptions
) -> Result<Vec<Partition<StatementReader>>, Status>
pub async fn partition_query_with_option(
&mut self,
stmt: Statement,
po: Option<PartitionOptions>,
qo: QueryOptions
) -> Result<Vec<Partition<StatementReader>>, Status>
partition_query returns a list of Partitions that can be used to execute a query against the database.
Methods from Deref<Target = Transaction>
query executes a query against the database. It returns a RowIterator for retrieving the resulting rows.
query returns only row data, without a query plan or execution statistics.
pub async fn query_with_option(
&mut self,
statement: Statement,
options: QueryOptions
) -> Result<RowIterator<'_>, Status>
pub async fn query_with_option(
&mut self,
statement: Statement,
options: QueryOptions
) -> Result<RowIterator<'_>, Status>
query executes a query against the database. It returns a RowIterator for retrieving the resulting rows.
query returns only row data, without a query plan or execution statistics.
read returns a RowIterator for reading multiple rows from the database.
pub async fn read_with_option<T, C, K>(
&mut self,
table: T,
columns: Vec<C>,
key_set: K,
options: ReadOptions
) -> Result<RowIterator<'_>, Status> where
T: Into<String>,
C: Into<String>,
K: Into<KeySet>,
pub async fn read_with_option<T, C, K>(
&mut self,
table: T,
columns: Vec<C>,
key_set: K,
options: ReadOptions
) -> Result<RowIterator<'_>, Status> where
T: Into<String>,
C: Into<String>,
K: Into<KeySet>,
read returns a RowIterator for reading multiple rows from the database.
read returns a RowIterator for reading multiple rows from the database.
Trait Implementations
type Target = ReadOnlyTransaction
type Target = ReadOnlyTransaction
The resulting type after dereferencing.
Auto Trait Implementations
impl !RefUnwindSafe for BatchReadOnlyTransaction
impl Send for BatchReadOnlyTransaction
impl Sync for BatchReadOnlyTransaction
impl Unpin for BatchReadOnlyTransaction
impl !UnwindSafe for BatchReadOnlyTransaction
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more