class SQLite3::Statement
def execute(*bind_vars)
end
...
stmt.execute do |result|
stmt = db.prepare( "select * from table" )
Example:
Any parameters will be bound to the statement using #bind_params.
be yielded to it; otherwise, the ResultSet will be returned.
statement's virtual machine. If a block was given, the new ResultSet will
Execute the statement. This creates a new ResultSet object for the
def execute(*bind_vars) reset! if active? || done? bind_params(*bind_vars) unless bind_vars.empty? results = @connection.build_result_set self step if column_count == 0 yield results if block_given? results end