On Tuesday, August 30, 2016 at 6:21:38 AM UTC-7, Andrey Botalov wrote: > > Can I make Sequel automatically stringify column names that methods like > DataSet#all return? > > There was a similar question here - > https://github.com/jeremyevans/sequel/issues/1057 but it only tells how > to preserve a case of column names. >
Sequel always uses symbols for column names. If you want to use strings, you would have to use a dataset row proc that converts the symbols to strings: dataset.row_proc = lambda do |row| h = {} row.each{|k,v| h[k].to_s = v} h end Be aware that other things may break if you do this and are using methods outside of Dataset#each/all. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to sequel-talk+unsubscr...@googlegroups.com. To post to this group, send email to sequel-talk@googlegroups.com. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.