Class: TableSaw::Formats::Copy
- Inherits:
-
Base
- Object
- Base
- TableSaw::Formats::Copy
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
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
['\.', "\n"]
end
|
6
7
8
|
# File 'lib/table_saw/formats/copy.rb', line 6
def
"COPY #{table_name} (#{quoted_columns}) FROM STDIN;"
end
|