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.
Instance Attribute Details
#cql ⇒ String (readonly)
Returns original cql used to prepare this statement.
26 27 28 |
# File 'lib/cassandra/statements/bound.rb', line 26 def cql @cql end |
#params ⇒ Array<Object> (readonly)
Returns a list of positional parameters for the cql.
28 29 30 |
# File 'lib/cassandra/statements/bound.rb', line 28 def params @params end |
Instance Method Details
#inspect ⇒ String
Returns a CLI-friendly bound statement representation.
43 44 45 |
# File 'lib/cassandra/statements/bound.rb', line 43 def inspect "#<#{self.class.name}:0x#{self.object_id.to_s(16)} @cql=#{@cql.inspect} @params=#{@params}>" end |