Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

ORM Support

botanicus edited this page Sep 13, 2010 · 11 revisions

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

Supported ORMs

- DataMapper
- Sequel (since 0.1.1, it still might some issues)

Types of Support

Core Support

Extended Support

Extended support adds some custom types as SlugField

Writing Plugins Depending on ORM

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.