Src/Interps/Ruby/ruby-1.8.6/lib/ruby/1.8/sqlite3/database.rb
# Executes all SQL statements in the given string. By contrast, the other
# means of executing queries will only execute the first statement in the
# string, ignoring all subsequent statements. This will execute each one
# in turn. The same bind parameters, if given, will be applied to each
# statement.
#
# This always returns +nil+, making it unsuitable for queries that return
# rows.
Executes all SQL statements in the given string. By contrast, the other
means of executing queries will only execute the first statement in the
string, ignoring all subsequent statements. This will execute each one
in turn. The same bind parameters, if given, will be applied to each
statement.

This always returns +nil+, making it unsuitable for queries that return
rows.
Executes all SQL statements in the given string . By contrast the other means of executing queries will only execute the first statement in the string ignoring all subsequent statements . This will execute each one in turn . The same bind parameters if given will be applied to each statement . This always returns + nil + making it unsuitable for queries that return rows .
def execute_batch( sql, *bind_vars )
      sql = sql.strip
      until sql.empty? do
        prepare( sql ) do |stmt|
          stmt.execute( *bind_vars )
          sql = stmt.remainder.strip
        end
      end
      nil
    end
def execute_batch ( sql , * bind_vars ) sql = sql . strip until sql . empty? do prepare ( sql ) do | stmt | stmt . execute ( * bind_vars ) sql = stmt . remainder . strip end end nil end
Executes all SQL statements in the given string.
Executes all SQL statements in the given string .
sql
bind_vars