Skip to content

Instantly share code, notes, and snippets.

@tonini
Created June 26, 2013 07:42
Show Gist options
  • Save tonini/5865499 to your computer and use it in GitHub Desktop.
Save tonini/5865499 to your computer and use it in GitHub Desktop.
import 'Items' do
from 'items' do |sequel|
sequel[<<-SQL
SELECT tblItems.point as hello
FROM tblItems
INNER JOIN tblOrderItems ON tblOrderItems.sItemID = tblItems.sID
SQL
]
end
to 'items'
mapping 'hello' => mapping 'new_hello'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment