Ruby Sequel is a lightweight database toolkit for Ruby.
Link: sequel.rubyforge.org
The pg_row plugin allows you to use Sequel::Model classes as composite type classes, via the pg_row extension. So if you have an address table: DB.create_table(:address) do String :street String :city String :zip end and a company table with an address: DB.create_table(:company) do St...
and ActiveRecord use the active record pattern of database access, where model instances are objects that wrap a row in a database table or view, encapsulating the database access, and adding domain logic on that data. Just like ActiveRecord, Sequel supports both associations and inhe...
Should be a hash with keys being symbols of column aliases, and values being either symbols or arrays with one to three elements. If the value is a symbol, it is assumed to be the same as a one element array containing that symbol. The first element of the array should be the table al...
Whether to raise an error when unable to typecast data for a column (default: true). This should be set to false if you want to use validations to display nice error messages to the user (e.g. most web applications). You can use the validates_not_string validations (from either the va...
dataset_filtering.rdoc doc/dataset_filtering.rdoc Last Update: 2012-07-13 09:26:05 -0700 Dataset Filtering Sequel is very flexibile when it comes to filtering records. You can specify your conditions as a custom string, as a string with parameters, as a hash of values to compare again...
Jeremy Evans's "The Development of Sequel" Presentation in May 2012 at Heroku Jeremy Evans's "Sequel: The Database Toolkit for Ruby" Presentation at PostgreSQL Conference West 2011 Jeremy Evans's "Sequel: SQL in Ruby" Presentation at Lone Star Ruby Conference 2009 Jeremy Evans's "Sequ...
The pg_json extension adds support for Sequel to handle PostgreSQL's json type. It is slightly more strict than the PostgreSQL json type in that the object returned must be an array or object (PostgreSQL's json type considers plain numbers and strings as valid). This is because Sequel...
Migrations are optional, you don't have to use them. You can always just create the necessary database structure manually using Sequel's schema modification methods or another database tool. However, if you are dealing with other developers, you'll have to send them all of the changes...