Class: Mysql2xxxx::CSV
Instance Attribute Summary
Attributes inherited from Writer
Instance Method Summary collapse
Methods inherited from Writer
#close, #dbh, #initialize, #keys, #last_statement, #recode_as_utf8, #result, #stream_arrays, #stream_hashes, #to_path, #to_s, #to_stdout
Constructor Details
This class inherits a constructor from Mysql2xxxx::Writer
Instance Method Details
#to_file(f) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/mysql2xxxx/writer/csv.rb', line 9 def to_file(f) f.write keys.to_csv stream_arrays do |ary| f.write ary.to_csv end nil end |