3 ms·
For quite some time, I have been using Sequel (http://sequel.rubyforge.org http://sequel.rubyforge.org) as an ORM with Postgres instead of ActiveRecord, and hav
by robertsosinski 14y ago
For quite some time, I have been using Sequel (http://sequel.rubyforge.org http://sequel.rubyforge.org) as an ORM with Postgres instead of ActiveRecord, and have never been happier. Overall, Rails has been a great web-framework, but ActiveRecord has been it's sore spot, at least for me.
Also, using the sequel_pg (https://github.com/jeremyevans/sequel_pg https://github.com/jeremyevans/sequel_pg) on Postgres ensures that even raw SQL queries are type-casted properly, plus it supports streaming and cursors, while also being very very quick.
If you want to stick with Ruby/Rails and relational databases, but think ActiveRecord might not be your bag, give Sequel a shot. It also fits nicely into lighter frameworks such as Sinatra.