{"id":27059944,"url":"https://github.com/tddschn/questdb-shell","last_synced_at":"2025-04-05T13:17:08.816Z","repository":{"id":285481314,"uuid":"958288642","full_name":"tddschn/questdb-shell","owner":"tddschn","description":"QuestDB Command Line Shell With Keyword and Table Name Auto-Completion","archived":false,"fork":false,"pushed_at":"2025-04-01T00:42:00.000Z","size":0,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T01:31:39.658Z","etag":null,"topics":["autocompletion","questdb","questdb-cli","questdb-shell","rlwrap"],"latest_commit_sha":null,"homepage":"https://teddysc.me/blog/rlwrap-questdb-shell","language":"Shell","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/tddschn.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":"2025-04-01T00:32:29.000Z","updated_at":"2025-04-01T00:42:02.000Z","dependencies_parsed_at":"2025-04-01T01:41:47.820Z","dependency_job_id":null,"html_url":"https://github.com/tddschn/questdb-shell","commit_stats":null,"previous_names":["tddschn/questdb-shell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fquestdb-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fquestdb-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fquestdb-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fquestdb-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tddschn","download_url":"https://codeload.github.com/tddschn/questdb-shell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339155,"owners_count":20923014,"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":["autocompletion","questdb","questdb-cli","questdb-shell","rlwrap"],"created_at":"2025-04-05T13:17:08.293Z","updated_at":"2025-04-05T13:17:08.805Z","avatar_url":"https://github.com/tddschn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QuestDB Command Line Shell With Keyword and Table Name Auto-Completion\n\nWeb Console is nice, but I miss the terminal -   \nWrite up and demo: https://teddysc.me/blog/rlwrap-questdb-shell\n\nSee also `questdb-rest` that provides the CLI this shell depends on:\n- Write up and demo: https://teddysc.me/blog/questdb-rest\n- GitHub: https://github.com/tddschn/questdb-rest\n- PyPI: https://pypi.org/project/questdb-rest/\n\n## Installation\n\n- Install rlwrap with your package manager, for Homebrew it's `brew install rlwrap`\n- `pipx install questdb-shell \u0026\u0026 qdb-cli gen-config`, edit the config if your db instance is not running on `localhost:9000` ([doc](https://github.com/tddschn/questdb-rest))\n- Clone this repo and copy `questdb-shell` to your `$PATH`\n\nThen run `questdb-shell` to start the shell, and test with `tables` query to see if it works.\n\n## Screenshots\n\n![CleanShot-2025-03-31-18.00.21_base64.png](https://g.teddysc.me/tddschn/e5bb610d28e63f5f81ec2c5f70dbda3b/CleanShot-2025-03-31-18.00.21_base64.png?b)\n![CleanShot-2025-03-31-18.10.16_base64.png](https://g.teddysc.me/tddschn/e5bb610d28e63f5f81ec2c5f70dbda3b/CleanShot-2025-03-31-18.10.16_base64.png?b)\n\n\n2nd screenshot shows autocompletion of both table names and SQL keywords. The `chhist_*` tables stores my chrome history dump for further analysis 🙃.\n\n\n## Demo (1 min)\n\nI use tab to trigger completion auggestions of table names and [SQL keywords](https://github.com/questdb/sql-grammar).\n\nHalf way through the demo, I accidentally made a query that returned 10 million rows (the `equities_1d` table), and I had to `Control-Z` to put the process in the background (since it wasn't responding to `Control-C`) and killed it with `kill %1` 😊.\n\nhttps://www.youtube.com/watch?v=Z_36FI_DDDQ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftddschn%2Fquestdb-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftddschn%2Fquestdb-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftddschn%2Fquestdb-shell/lists"}