A group of statements that are executed as a single batch.

Note: Batches are not supported by the binary protocol version 1.

Functions

CassBatch *

cass_batch_new

( type )

Creates a new batch statement with batch type.

Parameters:
Name Type Details
in type
Returns:
Type Details
CassBatch *

Returns a batch statement that must be freed.

See Also:
void

cass_batch_free

( batch )

Frees a batch instance. Batches can be immediately freed after being executed.

Parameters:
Name Type Details
in batch
CassError

cass_batch_set_consistency

( batch, consistency )

Sets the batch’s consistency level

Parameters:
Name Type Details
in batch
in consistency

The batch’s write consistency.

Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.

CassError

cass_batch_add_statement

( batch, statement )

Adds a statement to a batch.

Parameters:
Name Type Details
in batch
in statement
Returns:
Type Details
CassError

CASS_OK if successful, otherwise an error occurred.