Inherits

Object

Includes

Methods

self.

new

(cql, params)

Returns a new instance of Simple

Note
Positional arguments for simple statements are only supported on starting with Apache Cassandra 2.0 and above.
Overloads:
initialize(cql, *params)

Uses the deprecated splat-style way of passing positional arguments.

Deprecated
Please pass a single Array of positional arguments, the *params style is deprecated.
Parameters:
Name Type Details
cql String a cql statement
params *Object this style of positional arguments is deprecated, please pass a single Array instead - positional arguments for the query
Parameters:
Name Type Details
cql String a cql statement
params Array positional arguments 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

guess_type

(value)
Raises:
Type Details
::ArgumentError