class Cassandra::Statements::Bound
a Bound
statement is created using {Cassandra::Statements::Prepared#bind}
Attributes
cql[R]
@return [String] original cql used to prepare this statement
id[R]
@private prepared-statement id
keyspace[R]
@private
params[R]
@return [Array<Object>] a list of positional parameters for the cql
params_types[R]
@private
partition_key[R]
@private
result_metadata[R]
@private
Public Class Methods
new(id, cql, params_types, result_metadata, params, keyspace = nil, partition_key = nil, idempotent = false)
click to toggle source
@private
# File lib/cassandra/statements/bound.rb 35 def initialize(id, 36 cql, 37 params_types, 38 result_metadata, 39 params, 40 keyspace = nil, 41 partition_key = nil, 42 idempotent = false) 43 @id = id 44 @cql = cql 45 @params_types = params_types 46 @result_metadata = result_metadata 47 @params = params 48 @keyspace = keyspace 49 @partition_key = partition_key 50 @idempotent = idempotent 51 end
Public Instance Methods
accept(client, options)
click to toggle source
@private
# File lib/cassandra/statements/bound.rb 54 def accept(client, options) 55 client.execute(self, options) 56 end
inspect()
click to toggle source
@return [String] a CLI-friendly bound statement representation
# File lib/cassandra/statements/bound.rb 59 def inspect 60 "#<#{self.class.name}:0x#{object_id.to_s(16)} @cql=#{@cql.inspect} " \ 61 "@params=#{@params}>" 62 end