pudo / pgcsv

Load CSV files into Postgres without explicit schema creation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pgcsv

The purpose of pgcsv is to make a CSV file show up in a database. To this end, it will automatically create the table schema and COPY data. It will not attempt to perform type inference. It will not attempt to fix up your CSV file (the file is assumed to be readable as UTF-8 with the first row containing column headers).

Usage

$ pip install pgcsv
$ pgcsv --db postgresql://localhost/database new_table csv_file.csv

About

Load CSV files into Postgres without explicit schema creation.

License:MIT License


Languages

Language:Python 95.5%Language:Makefile 4.5%