Skip to content

Instantly share code, notes, and snippets.

@yzguy
Created September 11, 2015 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yzguy/f0b8b68a9203357e6dbd to your computer and use it in GitHub Desktop.
Save yzguy/f0b8b68a9203357e6dbd to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'sqlite3'
db = SQLite3::Database.new("locations.db")
def getAllLocations()
return db.execute("SELCT name FROM locations")
end
p getAllLocations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment