https://github.com/pudo/pgcsv
Load CSV files into Postgres without explicit schema creation.
https://github.com/pudo/pgcsv
bulk-loader copy csv postgresql
Last synced: 3 months ago
JSON representation
Load CSV files into Postgres without explicit schema creation.
- Host: GitHub
- URL: https://github.com/pudo/pgcsv
- Owner: pudo
- License: mit
- Created: 2017-02-05T14:11:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-06-26T08:08:47.000Z (over 4 years ago)
- Last Synced: 2025-08-15T20:59:20.192Z (5 months ago)
- Topics: bulk-loader, copy, csv, postgresql
- Language: Python
- Size: 11.7 KB
- Stars: 81
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
$ pip install pgcsv
$ pgcsv --db postgresql://localhost/database new_table csv_file.csv
```