{"id":17644421,"url":"https://github.com/himcc/sqlgo","last_synced_at":"2025-03-30T06:41:55.543Z","repository":{"id":69182612,"uuid":"601086399","full_name":"himcc/sqlgo","owner":"himcc","description":"sqlite browser and run sql on file (csv and excel file) in command line","archived":false,"fork":false,"pushed_at":"2023-02-20T08:54:25.000Z","size":334,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T08:51:04.067Z","etag":null,"topics":["csv","excel","sql","sqlite","sqlite3","sqlite3-database"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/himcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-02-13T10:41:04.000Z","updated_at":"2023-02-19T19:39:15.000Z","dependencies_parsed_at":"2023-05-01T16:03:22.131Z","dependency_job_id":null,"html_url":"https://github.com/himcc/sqlgo","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himcc%2Fsqlgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himcc%2Fsqlgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himcc%2Fsqlgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himcc%2Fsqlgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/himcc","download_url":"https://codeload.github.com/himcc/sqlgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285667,"owners_count":20752953,"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":["csv","excel","sql","sqlite","sqlite3","sqlite3-database"],"created_at":"2024-10-23T10:05:22.822Z","updated_at":"2025-03-30T06:41:55.520Z","avatar_url":"https://github.com/himcc.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqlgo\n\n\u003e sqlite browser and run sql on file (csv and excel file) in command line\n\n## 1. sqlite browser\n![sqlgo ui](./readme/ui.png)\n\nFeature\n * select db or create new db\n * view tables and schema \n * view sample data\n * edit sql, format sql and run sql\n * load data from file to table\n\n## 2. run sql on file in command line\n\u003e read data (csv or tsv) from stdin and process with sql\n```sh\n$ ./sqlgo-linux-amd64 -h\nOptions:\n\n  -h, --help                  display help information\n  -s, --sep[=   ]               column separator. default is \\t\n  -d, --database[=:memory:]   The path of database file. The file will be created when it does not exist.\n                                To retain the db file, please provide a path, otherwise, the db in memory will be used.\n  -t, --table                 Table define format '[tableName]:[colName1] coltype1,[colName2] coltype2 ...'.\n                                Default table name is _t. Default col name is _num(num starts from 1).\n                                Default col type is text.\n  -e, --exec                 *SQL to be executed.\n```\ndemo: \n\u003e  get max height, min height and average height in excel file. [catexcel](https://github.com/himcc/catexcel) can print excel file to console \n```sh\n$ ./catexcel student_height.xlsx -s 0 | ./sqlgo-linux-amd64 -t \"name text,height int\" -e \"select max(height),min(height),avg(height) from _t\"\nmax(height)     min(height)     avg(height)\n181     169     174.75\n```\nIf the query is too complex, please use browser mode.The browser mode is convenient for editing SQL.\n\n## Download\n\n[releases](https://github.com/himcc/sqlgo/releases)\n\n## Cross compile (in Windows PowerShell)\n```sh\n$Env:GOOS = \"darwin\"; $Env:GOARCH = \"amd64\"; go build -o sqlgo-darwin-amd64\n$Env:GOOS = \"linux\"; $Env:GOARCH = \"amd64\"; go build -o sqlgo-linux-amd64\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimcc%2Fsqlgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimcc%2Fsqlgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimcc%2Fsqlgo/lists"}