ruby-win32/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-x86-mswin32/lib/sqlite3/database.rb
def execute( sql, *bind_vars )
      prepare( sql ) do |stmt|
        result = stmt.execute( *bind_vars )
        if block_given?
          result.each { |row| yield row }
        else
          return result.inject( [] ) { |arr,row| arr << row; arr }
        end
      end
    end
# Executes the given SQL statement. If additional parameters are given,
# they are treated as bind variables, and are bound to the placeholders in
# the query.
#
# Note that if any of the values passed to this are hashes, then the
# key/value pairs are each bound separately, with the key being used as
# the name of the placeholder to bind the value to.
#
# The block is optional. If given, it will be invoked for each row returned
# by the query. Otherwise, any results are accumulated into an array and
# returned wholesale.
#
# See also #execute2, #query, and #execute_batch for additional ways of
# executing statements.
Executes the given SQL statement. If additional parameters are given,
they are treated as bind variables, and are bound to the placeholders in
the query.

Note that if any of the values passed to this are hashes, then the
key/value pairs are each bound separately, with the key being used as
the name of the placeholder to bind the value to.

The block is optional. If given, it will be invoked for each row returned
by the query. Otherwise, any results are accumulated into an array and
returned wholesale.

See also #execute2, #query, and #execute_batch for additional ways of
executing statements.
Executes the given SQL statement . If additional parameters are given they are treated as bind variables and are bound to the placeholders in the query . Note that if any of the values passed to this are hashes then the key / value pairs are each bound separately with the key being used as the name of the placeholder to bind the value to . The block is optional . If given it will be invoked for each row returned by the query . Otherwise any results are accumulated into an array and returned wholesale . See also #execute2 #query and #execute_batch for additional ways of executing statements .
def execute( sql, *bind_vars )
      prepare( sql ) do |stmt|
        result = stmt.execute( *bind_vars )
        if block_given?
          result.each { |row| yield row }
        else
          return result.inject( [] ) { |arr,row| arr << row; arr }
        end
      end
    end
def execute ( sql , * bind_vars ) prepare ( sql ) do | stmt | result = stmt . execute ( * bind_vars ) if block_given? result . each { | row | yield row } else return result . inject ( [ ] ) { | arr , row | arr << row ; arr } end end end
Executes the given SQL statement.
Executes the given SQL statement .
sql
bind_vars