Module: PostgresUpsert
- Defined in:
- lib/postgres_upsert.rb,
lib/postgres_upsert/result.rb,
lib/postgres_upsert/writer.rb,
lib/postgres_upsert/table_writer.rb
Defined Under Namespace
Classes: Result, TableWriter, Writer
Class Method Summary collapse
Class Method Details
.write(class_or_table, path_or_io, options = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/postgres_upsert.rb', line 11 def write class_or_table, path_or_io, = {} writer = class_or_table.is_a?(String) ? TableWriter : Writer writer.new(class_or_table, path_or_io, ).write end |