Queries the database and returns the results in an Array-like object
# File activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb, line 145
def query(sql, name = nil) #:nodoc:
log(sql, name) do
result_as_array @connection.async_exec(sql)
end
end