instance method
select_rows
Ruby on Rails 3.2.22.5
Since v2.2.3 Last seen in v3.2.22.5Signature
select_rows(sql, name = nil)
Executes a SELECT query and returns an array of rows. Each row is an array of field values.
Parameters
-
sqlreq -
nameopt = nil
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 576
def select_rows(sql, name = nil)
select_raw(sql, name).last
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 576
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter