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