{"id":16948998,"url":"https://github.com/jackc/csvtopg","last_synced_at":"2025-04-11T20:13:02.287Z","repository":{"id":57633459,"uuid":"251699244","full_name":"jackc/csvtopg","owner":"jackc","description":"csvtopg copies a CSV to a PostgreSQL database.","archived":false,"fork":false,"pushed_at":"2024-08-21T21:01:04.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T20:12:58.189Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-31T18:42:57.000Z","updated_at":"2025-01-02T08:47:28.000Z","dependencies_parsed_at":"2025-02-20T02:33:43.072Z","dependency_job_id":null,"html_url":"https://github.com/jackc/csvtopg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackc%2Fcsvtopg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackc%2Fcsvtopg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackc%2Fcsvtopg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackc%2Fcsvtopg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackc","download_url":"https://codeload.github.com/jackc/csvtopg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473124,"owners_count":21109628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T21:52:54.404Z","updated_at":"2025-04-11T20:13:02.259Z","avatar_url":"https://github.com/jackc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csvtopg\n\n`csvtopg` copies a CSV to a PostgreSQL database.\n\nWhy not just use psql and `\\copy`?\n\n* `csvtopg` has easier syntax than `\\copy`.\n* `csvtopg` will automatically create a table for the CSV data.\n* `csvtopg` will automatically detect common data types.\n\n## Installation\n\nThe Go tool chain must be installed.\n\n```\n$ go install github.com/jackc/csvtopg@latest\n```\n\n## Configuring Database Connection\n\n`csvtopg` supports the standard `PG*` environment variables. In addition, the `-d` flag can be used to specify a database URL.\n\n## Example usage\n\n```\n$ csvtocsv foo.csv\n```\n\nThis will create a new table foo_csv and copy foo.csv to it.\n\n## Related\n\nSee also the sibling project [pgtocsv)](https://github.com/jackc/pgtocsv) which simplifies exporting the result of a query as a CSV.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackc%2Fcsvtopg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackc%2Fcsvtopg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackc%2Fcsvtopg/lists"}