class Cassandra::Statements::Batch
Batch statement groups several Statement
. There are several
types of Batch statements available:
Inherits
Object
Includes
Methods
add
(statement, options = nil)Adds a statement to this batch.
- Note
- Positional arguments for simple statements are only supported starting with Apache Cassandra 2.0 and above.
- Note
- Named arguments for simple statements are only supported starting with Apache Cassandra 2.1 and above.
idempotent?
Determines whether or not the statement is safe to retry on timeout Batches are idempotent only when all statements in a batch are.
cql
A batch statement doesn’t really have any cql of its own as it is composed of multiple different statements
type
Returns one of :logged
, :unlogged
or :counter
inspect
Returns a CLI-friendly batch statement representation