pub struct TransactionOptions {
pub exclude_txn_from_change_streams: Option<bool>,
pub isolation_level: Option<String>,
pub partitioned_dml: Option<PartitionedDml>,
pub read_only: Option<ReadOnly>,
pub read_write: Option<ReadWrite>,
}Expand description
Options to use for transactions.
This type is not used in any activity, and only used as part of another schema.
Fields§
§exclude_txn_from_change_streams: Option<bool>When exclude_txn_from_change_streams is set to true, it prevents read or write transactions from being tracked in change streams. * If the DDL option allow_txn_exclusion is set to true, then the updates made within this transaction aren’t recorded in the change stream. * If you don’t set the DDL option allow_txn_exclusion or if it’s set to false, then the updates made within this transaction are recorded in the change stream. When exclude_txn_from_change_streams is set to false or not set, modifications from this transaction are recorded in all change streams that are tracking columns modified by these transactions. The exclude_txn_from_change_streams option can only be specified for read-write or partitioned DML transactions, otherwise the API returns an INVALID_ARGUMENT error.
isolation_level: Option<String>Isolation level for the transaction.
partitioned_dml: Option<PartitionedDml>Partitioned DML transaction. Authorization to begin a Partitioned DML transaction requires spanner.databases.beginPartitionedDmlTransaction permission on the session resource.
read_only: Option<ReadOnly>Transaction does not write. Authorization to begin a read-only transaction requires spanner.databases.beginReadOnlyTransaction permission on the session resource.
read_write: Option<ReadWrite>Transaction may write. Authorization to begin a read-write transaction requires spanner.databases.beginOrRollbackReadWriteTransaction permission on the session resource.
Trait Implementations§
Source§impl Clone for TransactionOptions
impl Clone for TransactionOptions
Source§fn clone(&self) -> TransactionOptions
fn clone(&self) -> TransactionOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more