Class: Swift::Statement
- Inherits:
-
Object
- Object
- Swift::Statement
- Defined in:
- lib/swift/statement.rb
Overview
Statement.
Wrapper for server side prepared statements.
Instance Method Summary collapse
-
#execute(*bind, &block) ⇒ Swift::Result
Execute a statement.
-
#initialize(record, command) ⇒ Statement
constructor
A new instance of Statement.
Constructor Details
Instance Method Details
#execute(*bind, &block) ⇒ Swift::Result
Execute a statement.
21 22 23 |
# File 'lib/swift/statement.rb', line 21 def execute *bind, &block Result.new(@record, @statement.execute(*bind), &block) end |