class SQLite3::Database

def prepare sql


The Statement can then be executed using Statement#execute.

execute the statement; it merely prepares the statement for execution.
Returns a Statement object representing the given SQL. This does not
def prepare sql
  stmt = SQLite3::Statement.new( self, sql )
  return stmt unless block_given?
  begin
    yield stmt
  ensure
    stmt.close unless stmt.closed?
  end
end