class TableSaw::Formats::Insert
Public Instance Methods
coder()
click to toggle source
# File lib/table_saw/formats/insert.rb, line 18 def coder PG::TextDecoder::CopyRow.new end
dump_row(row)
click to toggle source
# File lib/table_saw/formats/insert.rb, line 14 def dump_row(row) TableSaw::Queries::ExecuteInsertStatement.new(prepared_statement, row).call end
header()
click to toggle source
# File lib/table_saw/formats/insert.rb, line 6 def header prepared_statement.sql end
Private Instance Methods
prepared_statement()
click to toggle source
# File lib/table_saw/formats/insert.rb, line 24 def prepared_statement @prepared_statement ||= TableSaw::Queries::PreparedInsertStatement.new(table_name, options: options).call end