daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top