Struct cassandra_cpp::Batch
[−]
[src]
pub struct Batch(_);
A group of statements that are executed as a single batch. Note: Batches are not supported by the binary protocol version 1.
Methods
impl Batch
[src]
pub fn new(batch_type: BatchType) -> Batch
[src]
Creates a new batch statement with batch type.
pub fn set_consistency(&mut self, consistency: Consistency) -> Result<&mut Self>
[src]
Sets the batch's consistency level
pub fn set_serial_consistency(
&mut self,
consistency: Consistency
) -> Result<&mut Self>
[src]
&mut self,
consistency: Consistency
) -> Result<&mut Self>
Sets the batch's serial consistency level.
Default: Not set
pub fn set_timestamp(&mut self, timestamp: i64) -> Result<&Self>
[src]
Sets the batch's timestamp.
pub fn set_retry_policy(
&mut self,
retry_policy: RetryPolicy
) -> Result<&mut Self>
[src]
&mut self,
retry_policy: RetryPolicy
) -> Result<&mut Self>
Sets the batch's retry policy.
pub fn set_custom_payload(
&mut self,
custom_payload: CustomPayload
) -> Result<&mut Self>
[src]
&mut self,
custom_payload: CustomPayload
) -> Result<&mut Self>
Sets the batch's custom payload.
pub fn add_statement(&mut self, statement: &Statement) -> Result<&Self>
[src]
Adds a statement to a batch.
Trait Implementations
impl Debug for Batch
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more