Class: Cassandra::Statements::Bound
- Inherits:
-
Object
- Object
- Cassandra::Statements::Bound
- Includes:
- Cassandra::Statement
- Defined in:
- lib/cassandra/statements/bound.rb
Overview
a Bound statement is created using Prepared#bind
Instance Attribute Summary collapse
-
#cql ⇒ String
readonly
Original cql used to prepare this statement.
-
#params ⇒ Array<Object>
readonly
A list of positional parameters for the cql.
Instance Method Summary collapse
-
#inspect ⇒ String
A CLI-friendly bound statement representation.
Methods included from Cassandra::Statement
Instance Attribute Details
#cql ⇒ String (readonly)
26 27 28 |
# File 'lib/cassandra/statements/bound.rb', line 26 def cql @cql end |
#params ⇒ Array<Object> (readonly)
28 29 30 |
# File 'lib/cassandra/statements/bound.rb', line 28 def params @params end |
Instance Method Details
#inspect ⇒ String
59 60 61 62 |
# File 'lib/cassandra/statements/bound.rb', line 59 def inspect "#<#{self.class.name}:0x#{object_id.to_s(16)} @cql=#{@cql.inspect} " \ "@params=#{@params}>" end |