public
Description: Merb Plugins: Even more modules to hook up your Merb installation
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-plugins.git
pk (author)
Tue Feb 17 11:02:21 -0800 2009
commit  2e76d4a03793e07b07a0b272be9e41c6c5abccb8
tree    cf39c62b64aba30d90b285f67febcde7ce49ab46
parent  64f0abc06917d26aec5cb6e496fc912e8d097fc2
merb-plugins / merb_sequel
name age message
..
file Generators Fri Dec 12 16:15:53 -0800 2008 Make AR generators discoverable again. [michaelklishin]
file LICENSE Fri Dec 12 16:15:53 -0800 2008 Add contributors to LICENSE, update README, twe... [michaelklishin]
file README Fri Dec 12 16:19:27 -0800 2008 Merge branch 'master' of git@github.com:wycats/... [mattetti]
file Rakefile Mon Dec 22 16:46:45 -0800 2008 Set version to 1.0 [lholden]
file TODO Tue Dec 23 17:41:06 -0800 2008 Updated TODO [lholden]
directory lib/ Tue Feb 17 11:02:21 -0800 2009 sequel:db:reset uses :sequel_env [Pavel Kunc]
directory spec/ Fri Jan 02 21:06:07 -0800 2009 quick cleanup before 1.0 release [mattetti]
merb_sequel/README
= merb_sequel

A plugin for the Merb framework that provides support for Sequel models.


= Connection options

Merb Sequel plugin uses config/database.yml for connection configuration.

Options are:

* adapter. :sqlite is assumed by default.
* host. localhost is assumed by default.
* username or user, default is an empty string
* database, default is "hey_dude_configure_your_database". This should be
  either :memory: or file path for SQLite.
* encoding or charset, default is utf8.
* password. WARNING: default password is an empty string.
* db_type: default is nil. Use "mssql" to connect to MSSQL using ODBC.


= Generators

After you install the plugin, merb-gen can generate Sequel models for you:

merb-gen model --orm=sequel Article

same with resources

merb-gen resource --orm=sequel Article


Note that if you have specified that you use Sequel in init.rb or environment
specific init file (for instance, environments/development.rb)
via use_orm :sequel, you need no specify --orm option explicitly when
using merb-gen.


= Contributors

Originally written by Duane Johnson (canadaduane@gmail.com).

Contributions by:
* Wayne E. Seguin
* Lance Carlson
* Jacob Dunphy
* Lori Holden

Maintained by Michael S. Klishin (michael at novemberain.com)