summaryrefslogtreecommitdiff
path: root/query-db.rb
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2020-09-27 20:56:34 +0200
committerPatrick Simianer <p@simianer.de>2020-09-27 20:56:34 +0200
commitae15ee1cdb06b00803f4426b0e965510661c3322 (patch)
treed5f6eadaae86f588ab91b50db26624cdadaab8de /query-db.rb
parent843bb50c48a8b11c572c1e64e0237d09d635e1f0 (diff)
2020-09-27
Diffstat (limited to 'query-db.rb')
-rwxr-xr-xquery-db.rb13
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