From ae15ee1cdb06b00803f4426b0e965510661c3322 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 27 Sep 2020 20:56:34 +0200 Subject: 2020-09-27 --- query-db.rb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'query-db.rb') 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 -- cgit v1.2.3