Created
September 11, 2015 03:49
-
-
Save yzguy/f0b8b68a9203357e6dbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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