Class: Cql::Client::PreparedStatement

Inherits:
Object
  • Object
show all
Defined in:
lib/cql/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#metadataResultMetadata (readonly)

Returns:



134
135
136
# File 'lib/cql/client.rb', line 134

def 
  @metadata
end

Instance Method Details

#execute(*args) ⇒ Object

Execute the prepared statement with a list of values for the bound parameters.

The number of arguments must equal the number of bound parameters. To set the consistency level for the request you pass a consistency level (as a symbol) as the last argument. Needless to say, if you pass the value for one bound parameter too few, and then a consistency level, or if you pass too many values, you will get weird errors.

Parameters:

  • args (Array)

    the values for the bound parameters, and optionally the desired consistency level, as a symbol (defaults to :quorum)



146
147
# File 'lib/cql/client.rb', line 146

def execute(*args)
end