Module: DataLoader

Defined in:
lib/data_loader/loader.rb,
lib/data_loader/version.rb,
lib/data_loader/migrator.rb,
lib/data_loader/inspector.rb

Overview

DataLoader::Loader

Loads CSV files into MySQL

Config:

folder
  base folder for calls to load()
table_prefix
  prefix for derived table names
  very important because an existing table will be overwritten!!!
inspect_rows
  how many rows to scan the CSV file to determine the data types
connection
  a connection name from database.yml to run it under (e.g. :production)
default_ext
  extension to append if no file extension is specified
separator
  a comma (,)

Defined Under Namespace

Classes: Inspector, Loader, Migrator

Constant Summary collapse

VERSION =
"0.1.0"