Skip to content

Import CSV To Postgresql table - take a random CSV with headers, create a table and populate it with the CSV contents

License

Notifications You must be signed in to change notification settings

imreFitos/csvtopostgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby script to convert a CSV textfile with headers into Postgresql table. 

csvtopostgresql drops the existing table, creates a table based on the headers and populates the table with the contents.

usage: script path/to/file name-of-table

The script depends on the DATABASE_URL environmental variable to find the right database.

imre Fitos

About

Import CSV To Postgresql table - take a random CSV with headers, create a table and populate it with the CSV contents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages