Class: Sqldump::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/sqldump/formatter.rb

Class Method Summary collapse

Class Method Details

.formatter(sth, io, options) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/sqldump/formatter.rb', line 10

def self.formatter(sth, io, options)
  case options.dump_mode
    when :csv
      CsvFormatter.new(sth, io, options)
    when :insert
      InsertFormatter.new(sth, io, options)
  end
end