3 ms·
> when the ORM could just allow you to use relational concepts directly There is a database toolkit in ruby-land that allows you do just that! It's called Sequ
by xentronium 14y ago
> when the ORM could just allow you to use relational concepts directly
There is a database toolkit in ruby-land that allows you do just that! It's called Sequel.
I've built an example, which I deliberately kept as bare-bones and explicit as possible: https://gist.github.com/1aa977a63b7d6a727497 https://gist.github.com/1aa977a63b7d6a727497
You can also build something similar on top of ARel which backs ActiveRecord.
- sirn 14y agoActually Sequel (and ARel) is more like SQLAlchemy's SQL Expression Language[1] than the SQLAlchemy ORM itself. [1]: http://docs.sqlalchemy.org/en/latest/core/tutorial.html http://docs.sqlalchemy.org/en/latest/core/tutorial.html