Guest User

Untitled

a guest
Apr 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. require 'rubygems'
  2. require 'sequel'
  3.  
  4. DB = Sequel.mysql 'zattoo_activewarehouse_development', :user => 'root', :host => 'localhost'
  5.  
  6. dataset = DB.query do
  7. from :foo => :f
  8. join :bar, :id => :bar_id
  9. end
  10.  
  11. puts dataset.sql
Add Comment
Please, Sign In to add comment