Batch statement groups several Statement. There are several types of Batch statements available:

See Also:

Inherits

Object

Includes

Methods

add

(statement, *args)

Adds a statement to this batch

Parameters:
Name Type Details
statement (String, Statements::Simple, Statements::Prepared or Statements::Bound) statement to add
args *Object arguments to paramterized query or prepared statement
Returns:
Type Details
self

cql

A batch statement doesn’t really have any cql of its own as it is composed of multiple different statements

Returns:
Type Details
nil nothing

type

Returns one of :logged, :unlogged or :counter

Returns:
Type Details
Symbol one of :logged, :unlogged or :counter

inspect

Returns a CLI-friendly batch statement representation

Returns:
Type Details
String a CLI-friendly batch statement representation