26 Jul '12, 7am

Ruby で Scala の Querulous みたいな SQL セントリックな DB アクセスって、Sequel の SQL API 使うのが正解なのかな。

actually does internally is two separate things. It first creates a dataset representing the query, and then it executes the dataset's SQL code to retrieve the objects. Often, you want to define a dataset at some point, but not execute it till later. You can do this by leaving off the block, and storing the dataset in a variable:

Full article: http://sequel.rubyforge.org/rdoc/files/doc/sql_rdoc.html


rake db:test:prepare - Ruby Forum:

ruby-forum.com 20 Jul '12, 3pm

I'm having fun with a legacy DB (SQL Server), and in the process found some code in rails/lib/tasks/databases.rake which f...