Advertisement
Guest User

Untitled

a guest
Sep 10th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. require 'sqlite3'
  4.  
  5. db = SQLite3::Database.new("locations.db")
  6.  
  7. def getAllLocations()
  8. return db.execute("SELCT name FROM locations")
  9. end
  10.  
  11. p getAllLocations
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement