Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- # My first ruby script
- # This is awesome!
- require 'sequel'
- myName = "Rubas";
- puts "Hello " + myName;
- DB = Sequel.connect('mysql://username:password@host:3306/dbname')
- DB['select * from rooms'].each do |row|
- p row
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement