A prepared statement is created by calling Session#prepare or Session#prepare_async.

Inherits

Object

Includes

Methods

cql

Returns original cql used to prepare this statement

Returns:
Type Details
String original cql used to prepare this statement

bind

(args = nil)

Creates a statement bound with specific arguments

Parameters:
Name Type Details
args (Array or Hash) (defaults to: nil) (nil) positional or named arguments to bind, must contain the same number of parameters as the number of positional (?) or named (:name) markers in the original CQL passed to Session#prepare
Returns:
Type Details
Statements::Bound bound statement

execution_info

Returns execution info for PREPARE request

Returns:
Type Details
Execution::Info execution info for PREPARE request

inspect

Returns a CLI-friendly prepared statement representation

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

create_partition_key

(values)