Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require 'sqlite3'
- db = SQLite3::Database.new("locations.db")
- def getAllLocations()
- return db.execute("SELCT name FROM locations")
- end
- p getAllLocations
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement