blob: 2418c7dec7eef89614f8768c78d5bcd835081585 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env ruby
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|
# puts result.to_s
#end
#db.execute("select * from temp") do |result|
# puts result.to_s
#end
db.close
|