summaryrefslogtreecommitdiff
path: root/db-query.rb
blob: 3a3fa70e967da9bdfdaf929344835ffb3014ab42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby

require 'sqlite3'

def main
  db = SQLite3::Database.new ARGV[0]
  db.execute("select * from power") do |result|
    puts result.to_s
  end
  db.close
end


main