Inherits

Object

Includes

Methods

self.

new

(cql, *params)

Returns a new instance of Simple

Parameters:
Name Type Details
cql String a cql statement
params *Object 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