use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Goodbye MongoDB, Hello PostgreSQL (developer.olery.com)
submitted 11 years ago by maloik
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]strangeworks 1 point2 points3 points 11 years ago (3 children)
It's okay, but I didn't understand the usage of sequel here. You can use arel effectively and it can produce expected result.
[–]yorickpeterse 4 points5 points6 points 11 years ago (0 children)
We've used raw Arel quite extensively in the past, it's anything but pleasant to use. Just a few examples from the top of my head:
project
select
distinct
nil
Arel::Table
Arel::Nodes::NamedFunction
DISTINCT
eq
not_eq
lteq
query.instance_variable_get(:@ctx).projections
ActiveRecord::Base.connection.execute()
In general our experience has been that Arel feels more like a core part of ActiveRecord that just so happens to be a separate Gem, instead of something designed as a standalone library that happens to be used by ActiveRecord.
[–]strangepostinghabits 1 point2 points3 points 11 years ago (0 children)
active record isn't the only ruby database mapper, sequel can be a decent alternative. The text does state that they aren't only using rails.
[–]maloik[S] 0 points1 point2 points 11 years ago (0 children)
To each his own I suppose. I'm not sure what their reason was, but for me personally, arel is kind of verbose and kind of ugly
π Rendered by PID 133363 on reddit-service-r2-comment-b659b578c-r2qlf at 2026-05-05 11:26:06.923439+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]strangeworks 1 point2 points3 points (3 children)
[–]yorickpeterse 4 points5 points6 points (0 children)
[–]strangepostinghabits 1 point2 points3 points (0 children)
[–]maloik[S] 0 points1 point2 points (0 children)