12 May '13, 8pm

@roncohen FYI, sequel supports "rows":

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 String :name address :address end You can create a Sequel::Model for the address table, and load the plugin, which registers the row type: class Address < Sequel :: Model (:address ) plugin :pg_row end Then when you select from the company table (even using a plain dataset), it will return address values as instances of Address: DB [:company ].first # => {:name=>'MS', :address=> Address .load (:street= > '123 Foo St' , :city= > 'Bar Town' , :zip= > '12345' )} If you want a lot of your models to be used as row types, you can load the plugin into Sequel::Model itself: Sequel::Model.plugin :pg_row ...

Full article: http://sequel.rubyforge.org/rdoc-plugins/classes/Sequel/P...

Tweets

Sequel 3.47.0 Released: auto_validations and in...

ruby-forum.com 01 May '13, 4pm

Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concis...

No Comment | The sequel to Plants vs. Zombies will be coming in July. PopCap originally…

No Comment | The sequel to Plants vs. Zombies w...

blog.dk.sg 13 May '13, 1am

The sequel to Plants vs. Zombies will be coming in July. PopCap originally announced that the sequel will be coming in Spr...

High-performance set-top box SoC supports high-...

eetimes.com 13 May '13, 1am

STMicroelectronics says that the company’s Orly system-on-chip (SoC) is now powering a new generation of advanced set-top ...