From: Brian Candler Date: 2007-05-05T05:12:25+09:00 Subject: Re: Witch Oracle library should I use On Sat, May 05, 2007 at 04:37:34AM +0900, Ben Edwards wrote: > Thanks for this. Have been trying Ruby/OCI8 and it seems to work. > Only thing is when it fetches row it is referenced as an array > (row[0], row[1]...). Is there a way of referencing the column names > (row["username"]...). You could steal some code from ActiveRecord's Oracle connection adaptor. When you call Foo.connection.select_all(...) in ActiveRecord, it returns an array of [{colname=>value, colname=>value}, {colname=>value, colname=>value}, ...] Or I have a vague recollection that maybe ruby-dbi will do this for you.