Module: ActiveRecord::RawData::ClassMethods
- Defined in:
- lib/activerecord-raw-data.rb
Instance Method Summary collapse
Instance Method Details
#raw_data ⇒ Object
16 17 18 |
# File 'lib/activerecord-raw-data.rb', line 16 def raw_data RawData.adapter.result_to_hash(connection.select_all RawData.adapter.blank_scope(self).to_sql) end |
#raw_data_by_sql(sql) ⇒ Object
28 29 30 |
# File 'lib/activerecord-raw-data.rb', line 28 def raw_data_by_sql(sql) RawData.adapter.result_to_hash(connection.select_all sanitize_sql(sql)) end |
#raw_rows ⇒ Object
20 21 22 |
# File 'lib/activerecord-raw-data.rb', line 20 def raw_rows connection.select_rows RawData.adapter.blank_scope(self).to_sql end |
#raw_values ⇒ Object
24 25 26 |
# File 'lib/activerecord-raw-data.rb', line 24 def raw_values connection.select_values RawData.adapter.blank_scope(self).to_sql end |