Module: SqlValues::RelationInstanceMethods
- Defined in:
- lib/sql_values.rb
Instance Method Summary collapse
Instance Method Details
#hashes(names) ⇒ Object
14 15 16 |
# File 'lib/sql_values.rb', line 14 def hashes(names) connection.select_all(select(names).to_sql) end |
#ids(name = :id) ⇒ Object
10 11 12 |
# File 'lib/sql_values.rb', line 10 def ids(name = :id) values(name) end |
#values(name) ⇒ Object
6 7 8 |
# File 'lib/sql_values.rb', line 6 def values(name) connection.select_values(select(name).to_sql) end |