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