diff options
Diffstat (limited to 'query-db.rb')
-rwxr-xr-x | query-db.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/query-db.rb b/query-db.rb index 2418c7d..984a59d 100755 --- a/query-db.rb +++ b/query-db.rb @@ -4,17 +4,16 @@ require 'sqlite3' db = SQLite3::Database.new("weather.db") -db.execute("select * from rain") do |result| - puts result.to_s -end - -#db.execute("select * from wind") do |result| +#db.execute("select * from rain") do |result| # puts result.to_s #end -#db.execute("select * from temp") do |result| +#db.execute("select * from wind") do |result| # puts result.to_s #end -db.close +db.execute("select * from temp") do |result| + puts result.to_s +end +db.close |