Module: Csv2Psql::Convert

Defined in:
lib/csv2psql/convert/convert.rb

Overview

Csv2Psql convert module

Class Method Summary collapse

Class Method Details

.analyze(paths, opts = {}) ⇒ Object



10
11
12
13
# File 'lib/csv2psql/convert/convert.rb', line 10

def analyze(paths, opts = {})
  p = Processor.new
  p.analyze(paths, opts)
end

.convert(paths, opts = {}) ⇒ Object



15
16
17
18
# File 'lib/csv2psql/convert/convert.rb', line 15

def convert(paths, opts = {})
  p = Processor.new
  p.convert(paths, opts)
end

.generate_schema(paths, opts = {}) ⇒ Object



20
21
22
23
# File 'lib/csv2psql/convert/convert.rb', line 20

def generate_schema(paths, opts = {})
  p = Processor.new
  p.generate_schema(paths, opts)
end