class Cassandra::Statements::Batch
Batch statement groups several Statement
. There are several types of Batch statements available:
Inherits
Object
Includes
Methods
add
(statement, args = nil, type_hints = 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.
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