Clone this repo:

Branches

Tags

  1. b7fd238 change for eoddata csv format by Evgene Oskin · 10 years ago WIP master
  2. d7020a4 if smth was not commited by Evgene Oskin · 10 years ago
  3. 3b561f6 add depends: split by Evgene Oskin · 10 years ago
  4. 1576e40 add dependens: split by Evgene Oskin · 10 years ago
  5. 1b571b7 add function type, cmd Options (getOpt), change some functions names by Evgene Oskin · 10 years ago

csv2sql

Instalation

$ghc --make setup

$./setup configure --prefix=$HOME --user

$./setup build

$./setup install

Runing

$./csv2sql -I path/to/csv/dir -O path/to/sql/dir

"path/to/csv/dir" is a path to directory which contain *.csv files (else it can be a singl file). If path contains " " (space) you should put path into quote ("path").

"path/to/sql/dir" is a path to directory which will contain .sql files (it mast be path to sigle file (.sql) if "path/to/csv/dir" is a a path to sigle file (*.csv)). If path contains " " (space) you should put path into quote ("path").