#!/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