{"id":13841066,"url":"https://github.com/m7shapan/querycsv","last_synced_at":"2026-01-23T01:29:16.903Z","repository":{"id":57569021,"uuid":"327733664","full_name":"m7shapan/querycsv","owner":"m7shapan","description":"QueryCSV enables you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to a CSV file","archived":false,"fork":false,"pushed_at":"2021-01-25T00:47:32.000Z","size":165,"stargazers_count":101,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-11T11:54:11.097Z","etag":null,"topics":["csv","generator","sql"],"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/m7shapan.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}},"created_at":"2021-01-07T21:56:31.000Z","updated_at":"2024-01-03T14:17:21.000Z","dependencies_parsed_at":"2022-08-23T14:11:00.650Z","dependency_job_id":null,"html_url":"https://github.com/m7shapan/querycsv","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/m7shapan/querycsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Fquerycsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Fquerycsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Fquerycsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Fquerycsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m7shapan","download_url":"https://codeload.github.com/m7shapan/querycsv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m7shapan%2Fquerycsv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28677499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"ssl_error","status_checked_at":"2026-01-23T01:00:19.529Z","response_time":144,"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","generator","sql"],"created_at":"2024-08-04T17:01:02.227Z","updated_at":"2026-01-23T01:29:16.878Z","avatar_url":"https://github.com/m7shapan.png","language":"Go","readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"logo.png\" width=\"300\"\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n# QueryCSV\nenable you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to CSV file\n\n## Why\nit's started with this task that I need to merge 30 CSV file into one file and group it by day instead of the hour, I wrote a couple of lines of code to do that, but I knew it is not going to be the last task that I will need to manipulate the CSV files, so wrote this cmd app to help me on this kind of tasks, I hope that could help too.\n\n\n## Install\n```bash\ngo get github.com/m7shapan/querycsv\n```\nor download [Binaries from releases page](https://github.com/m7shapan/querycsv/releases)\n\n## How to use\n\n```\n➜ firstgroup = load group_a.csv\n- loading file group_a.csv\n+---------+-----+\n|  name   | age |\n+---------+-----+\n| Mohamed |  26 |\n| Asma    |  26 |\n| Ahmed   |  23 |\n+---------+-----+\n➜ secondgroup = load group_b.csv\n- loading file group_b.csv\n+---------+-----+\n|  name   | age |\n+---------+-----+\n| mahmoud |  24 |\n| sara    |  22 |\n| khaled  |  23 |\n+---------+-----+\n➜ groups = select * from firstgroup\n➜ groups += select name, age from secondgroup\n➜ show groups 10\n+---------+-----+\n|  name   | age |\n+---------+-----+\n| Mohamed |  26 |\n| Asma    |  26 |\n| Ahmed   |  23 |\n| mahmoud |  24 |\n| sara    |  22 |\n| khaled  |  23 |\n+---------+-----+\n➜ group_by_age = select age, count(*) as count from groups group by age\n➜ show group_by_age\nerror: wrong number of command parameters expected 2, found 1\n➜ show group_by_age 10\n+-----+-------+\n| age | count |\n+-----+-------+\n|  22 |     1 |\n|  23 |     2 |\n|  24 |     1 |\n|  26 |     2 |\n+-----+-------+\n➜ export group_by_age final_group.csv\nfile exported\n```\n\n### Commands\n\n```\nload [file.csv]    load only one file or all directory files in case of directory all files should be of the same csv structure\n\n    example:\n    testtable = load path/to/file.csv\n    testtable = load path/to/files\n\n\nlist    list all existed tables name\n\n\nshow [tablename] [limit] print table data use the limit to limit rows number \n\n    example:\n    show testtable 10\n\n\nexport [tablename] [path/to/exported/file.csv]\n\n    example:\n    export testtable testtable.csv\n\n```\n\n## Contact\nMohamed Shapan [@m7shapan](https://twitter.com/M7Shapan)\n","funding_links":[],"categories":["Go (531)","Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm7shapan%2Fquerycsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm7shapan%2Fquerycsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm7shapan%2Fquerycsv/lists"}