Class: TableSaw::Formats::Copy

Inherits:
Base
  • Object
show all
Defined in:
lib/table_saw/formats/copy.rb

Instance Attribute Summary

Attributes inherited from Base

#options, #table_name

Instance Method Summary collapse

Methods inherited from Base

#coder, #initialize

Constructor Details

This class inherits a constructor from TableSaw::Formats::Base

Instance Method Details

#dump_row(row) ⇒ Object



14
15
16
# File 'lib/table_saw/formats/copy.rb', line 14

def dump_row(row)
  row
end


10
11
12
# File 'lib/table_saw/formats/copy.rb', line 10

def footer
  ['\.', "\n"]
end

#headerObject



6
7
8
# File 'lib/table_saw/formats/copy.rb', line 6

def header
  "COPY #{table_name} (#{quoted_columns}) FROM STDIN;"
end