-
Notifications
You must be signed in to change notification settings - Fork 9
ORM Support
This page is up to date for Rango 0.1.1.
Rango doesn’t support any ORM via API, so you don’t have any global object with DB connection and you can’t just database.yml
file. However we believe it doesn’t matter, since each ORM provide its own DB connection and you there is absolutely no need for database.yml
as well since you can connect to your DB via your ORM directly.
- http://github.com/rails/rails/tree/experimental/activemodel/
- http://github.com/hassox/veneer
- tasks
- generators
- DataMapper
- Sequel (since 0.1.1, it still might some issues)
Extended support adds some custom types as SlugField
Developers are quite used to write require "my_plugin"
require "my_plugin/adapters/#{Rango.orm}"
However it’s easier if use just do require "my_plugin/adapters/datamapper"
, so there would be no need for detecting used ORM.