{"id":20935894,"url":"https://github.com/pooulad/csv-convertor","last_synced_at":"2026-05-21T04:36:41.043Z","repository":{"id":203950615,"uuid":"710768703","full_name":"pooulad/csv-convertor","owner":"pooulad","description":"🚨This program is written with GO to convert and insert your csv file in database(my-sql OR postgresql)","archived":false,"fork":false,"pushed_at":"2023-10-30T09:25:42.000Z","size":4022,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T22:43:49.647Z","etag":null,"topics":["csv-parser","golang","tool"],"latest_commit_sha":null,"homepage":"","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/pooulad.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":"2023-10-27T11:57:21.000Z","updated_at":"2023-11-09T15:38:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d65c74b-2476-4cb2-bd15-2854e54e0444","html_url":"https://github.com/pooulad/csv-convertor","commit_stats":null,"previous_names":["pooulad/csv-convertor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pooulad/csv-convertor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooulad%2Fcsv-convertor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooulad%2Fcsv-convertor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooulad%2Fcsv-convertor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooulad%2Fcsv-convertor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pooulad","download_url":"https://codeload.github.com/pooulad/csv-convertor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooulad%2Fcsv-convertor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33288909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["csv-parser","golang","tool"],"created_at":"2024-11-18T22:16:43.640Z","updated_at":"2026-05-21T04:36:41.020Z","avatar_url":"https://github.com/pooulad.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction👨‍💻\n\n🚨This program is written with GO to convert and insert your csv file in database(my-sql OR postgresql) \n\n\u003ca href=\"https://www.coffeebede.com/poulad\"\u003e\u003cimg class=\"img-fluid\" src=\"https://coffeebede.ir/DashboardTemplateV2/app-assets/images/banner/default-yellow.svg\" /\u003e\u003c/a\u003e\n## Usage\nBefore starting remember that your database structure should be same as your csv structure. otherwise it dosn't work.\n\n![1 AoO5hLnLRZvU2zSqyko-Ow](https://github.com/pooulad/csv-convertor/assets/86445458/ecbc2779-f502-47c2-8037-2430cf5c5a9f)\n\n## How to build\nin the root directory:\n```\ngo build ./cmd/main.go\n```\nOR download file : [build program file](https://github.com/pooulad/csv-convertor/raw/main/main)\n\n**flags**\n```\ndatabaseType = \"mysql\" OR \"postgres\"\n-type=databaseType or --type=databaseType\n```\n```\n-config=config.json or --config=config.json\n```\n```\n-file=file.csv or --file.csv=file.csv\n```\n## Config file is a json file that includes db information for insert csv\n\nmysql sample : \n```json\n{\n  \"username\": \"postgres\",\n  \"password\": \"postgres\",\n  \"host\": \"localhost\",\n  \"name\": \"exel2sqldb\",\n  \"port\": \"3306\",\n  \"table_name\": \"name\",\n}\n```\n\npostgres sample : \n```json\n{\n  \"username\": \"postgres\",\n  \"password\": \"postgres\",\n  \"host\": \"localhost\",\n  \"name\": \"exel2sqldb\",\n  \"ssl\": \"disable\",\n  \"table_name\": \"name\",\n}\n```\n\n## Examples\n\nI have prepared some examples for you that you can use\n\n## Windows\n```\ngo run main.go -type=postgres -file=./assets/username.csv -config=./postgres.json\n```\nOR\n```\n.\\build.exe -type=postgres -file=./assets/username.csv -config=./postgres.json\n```\n\n## Linux\n```\ngo run ./cmd/main.go -type=postgres -file=./assets/username.csv -config=./postgres.json\n```\nOR\n```\nsudo ./buildFileName ./cmd/main.go -type=postgres -file=./assets/username.csv -config=./postgres.json\n```\nOR\n\n**you can use wine package too:**\n```\nwine start ./buildFileName -type=postgres -file=./assets/username.csv -config=./postgres.json\n```\n\n\n## Tech Stack\n\n**Database:** postgresql,mysql\n\n**Lang:** GOLANG\n\n    github.com/lib/pq\n    github.com/go-sql-driver/mysql\n\n\n## Author\n\n- [@pooulad](https://www.github.com/pooulad)\n  \n## Demo\n\n![Screenshot 2023-10-24 211725](https://github.com/pooulad/csv-2-sql-example/assets/86445458/57dd39e1-9929-4a8c-8223-6f83167d23de)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooulad%2Fcsv-convertor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpooulad%2Fcsv-convertor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooulad%2Fcsv-convertor/lists"}