Class: Cql::Client::SynchronousPreparedStatement
- Inherits:
-
PreparedStatement
- Object
- PreparedStatement
- Cql::Client::SynchronousPreparedStatement
- Includes:
- SynchronousBacktrace
- Defined in:
- lib/cql/client/synchronous_prepared_statement.rb
Instance Attribute Summary
Attributes inherited from PreparedStatement
Instance Method Summary collapse
- #async ⇒ Object
- #execute(*args) ⇒ Object
-
#initialize(async_statement) ⇒ SynchronousPreparedStatement
constructor
A new instance of SynchronousPreparedStatement.
- #pipeline {|pl| ... } ⇒ Object
Methods included from SynchronousBacktrace
Constructor Details
#initialize(async_statement) ⇒ SynchronousPreparedStatement
Returns a new instance of SynchronousPreparedStatement.
9 10 11 12 |
# File 'lib/cql/client/synchronous_prepared_statement.rb', line 9 def initialize(async_statement) @async_statement = async_statement @metadata = async_statement. end |
Instance Method Details
#async ⇒ Object
24 25 26 |
# File 'lib/cql/client/synchronous_prepared_statement.rb', line 24 def async @async_statement end |
#execute(*args) ⇒ Object
14 15 16 |
# File 'lib/cql/client/synchronous_prepared_statement.rb', line 14 def execute(*args) synchronous_backtrace { @async_statement.execute(*args).value } end |