Class: PreparedStatement
- Inherits:
-
Object
- Object
- PreparedStatement
- Defined in:
- lib/cassandra_migrations/cql-rb-wrapper.rb
Instance Attribute Summary collapse
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
Instance Method Summary collapse
- #execute(*args) ⇒ Object
-
#initialize(client, statement) ⇒ PreparedStatement
constructor
A new instance of PreparedStatement.
Constructor Details
#initialize(client, statement) ⇒ PreparedStatement
Returns a new instance of PreparedStatement.
9 10 11 12 |
# File 'lib/cassandra_migrations/cql-rb-wrapper.rb', line 9 def initialize(client, statement) @client = client @statement = statement end |
Instance Attribute Details
#statement ⇒ Object (readonly)
Returns the value of attribute statement.
7 8 9 |
# File 'lib/cassandra_migrations/cql-rb-wrapper.rb', line 7 def statement @statement end |
Instance Method Details
#execute(*args) ⇒ Object
14 15 16 |
# File 'lib/cassandra_migrations/cql-rb-wrapper.rb', line 14 def execute(*args) @client.execute(@statement, *args) end |