3 ms·
In my limited experience, the best thing about ORM isn't the querying, but the mapping to objects. This is why I really like ActiveRecord's `find_by_sql`[1], wh
by freetonik 4y ago
In my limited experience, the best thing about ORM isn't the querying, but the mapping to objects. This is why I really like ActiveRecord's `find_by_sql`[1], which allows to write a raw SQL query and get an array of objects.
[1]: https://guides.rubyonrails.org/v3.2/active_record_querying.html#finding-by-sql https://guides.rubyonrails.org/v3.2/active_record_querying.h...