Created
August 7, 2010 17:34
-
-
Save wilig/513011 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sequel> (collect :projects) | |
"select * from projects" | |
sequel> (collect :projects :invoices) | |
"select * from projects, invoices" | |
sequel> (collect :projects :invoices [:projects/id :projects/name (as :inv_id :invoices/id) :invoices/date]) | |
"select projects.id, projects.name, invoices.id AS inv_id, invoices.date from projects, invoices" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment