sqlite3-rubyを使って、SQLite3にアクセスしてデータの取得、加工がしたい。 db.executeした際に配列が帰ってきた。カラム名でアクセス出来る方法がないか探したところ、results_as_hash = trueにすれば、Hashで返ってくることがわかった。 SQLite3/Ruby FAQ I’d like the rows to be indexible by column name.By default, each row from a query is returned as an Array of values. This means that you can only obtain values by their index. Sometimes, however, you would like to obtain values by their colum