Inherits

Object

Includes

Methods

self.

new

(cql, params = nil, type_hints = nil)

Returns a new instance of Simple

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.
Parameters:
Name Type Details
cql String a cql statement
params (Array or Hash) (defaults to: nil) (nil) positional or named arguments for the query
type_hints (Array or Hash) (defaults to: nil) (nil) positional or named types to override type guessing for the query
Raises:
Type Details
ArgumentError if cql statement given is not a String

cql

Returns original cql used to prepare this statement

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

params

Returns a list of positional parameters for the cql

Returns:
Type Details
Array<Object> a list of positional parameters for the cql

inspect

Returns a CLI-friendly simple statement representation

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

eql?

(other) aliased as: ==

Returns whether the statements are equal

Parameters:
Name Type Details
other (Object or Statements::Simple) object to compare
Returns:
Type Details
Boolean whether the statements are equal