instance method
select_rows
Ruby on Rails 8.0.4
Since v2.2.3Signature
select_rows(arel, name = nil, binds = [], async: false)
Returns an array of arrays containing the field values. Order is the same as that returned by columns.
Parameters
-
arelreq -
nameopt = nil -
bindsopt = [] -
asynckey = false
Source
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 101
def select_rows(arel, name = nil, binds = [], async: false)
select_all(arel, name, binds, async: async).then(&:rows)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb line 101
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::DatabaseStatements