search for: row_sep

Displaying 2 results from an estimated 2 matches for "row_sep".

Did you mean: now_sec
2007 Nov 13
0
FasterCSV: ignoring returns within a db field
Hello, my goal is to import data into a MySQL-Database using FasterCSV: Does anyone have an idea how I can force FasterCSV to ignore carriage returns that occur within(!) a database text field and to read until "line feed" = end or row is reached? I tried to use option ":row_sep" but it did not work, it still uses the returns within the text field as end of row, too: FasterCSV.foreach("test", :headers => :first_row, :col_sep => ",", :row_sep => "\n") do |row| (\n should be line feed in ruby, right?) I also thought about replac...
2009 May 21
0
FasterCSV won't accept :headers option
When I pass :headers => true to FasterCSV.foreach it complains. Without it it works. Am I doing something wrong? FasterCSV.foreach(file, {:row_sep => :auto, :col_sep => "\t", :quote_char => "~", :return_headers => false, :headers => true}) do |row| -- Posted via http://www.ruby-forum.com/.