{"id":20325429,"url":"https://github.com/getyourguide/dbq","last_synced_at":"2025-04-11T19:42:25.920Z","repository":{"id":44747137,"uuid":"232064283","full_name":"getyourguide/dbq","owner":"getyourguide","description":"Run Databricks queries from your terminal or editor","archived":false,"fork":false,"pushed_at":"2025-02-14T09:36:49.000Z","size":278,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":58,"default_branch":"master","last_synced_at":"2025-03-25T15:49:12.386Z","etag":null,"topics":["cli","databricks","repl","sql","team-ps"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getyourguide.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-06T09:12:08.000Z","updated_at":"2025-02-14T09:36:50.000Z","dependencies_parsed_at":"2023-01-25T16:46:11.580Z","dependency_job_id":"bfe99b3c-b2e1-43a6-b244-a72b03046b90","html_url":"https://github.com/getyourguide/dbq","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/getyourguide%2Fdbq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getyourguide%2Fdbq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getyourguide%2Fdbq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getyourguide%2Fdbq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getyourguide","download_url":"https://codeload.github.com/getyourguide/dbq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248468531,"owners_count":21108835,"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":["cli","databricks","repl","sql","team-ps"],"created_at":"2024-11-14T19:39:48.321Z","updated_at":"2025-04-11T19:42:25.888Z","avatar_url":"https://github.com/getyourguide.png","language":"Python","readme":"# dbq\n\nRun Databricks queries from your terminal or editor.\n\n![Basic demo](assets/basic-demo.svg)\n\n\n## Installation and configuration\n\n```\npip3 install dbq\n```\n\nNote: libsasl2 is required on your system. On Ubuntu, get it through `sudo apt-get install libsasl2-dev`.\n\nConfiguration instructions will be displayed when you run `dbq`.\n\n\n## Usage\n\n```\ndbq [QUERY]\n```\n\n\n## Interactive session\n\nRun `dbq` (without `QUERY`) to start an interactive REPL. Readline is supported, a history file is kept in `~/.dbq_history`.\n\n\n## Read query from stdin\n\nSpecify `-` for `QUERY`. Useful for editor integrations; see next section.\n\n\n### Integrating with vim\n\nThis example binds `ctrl+s` to running the selected text as a query (visual mode) or the subquery that is under the cursor (normal mode).\n\n```\nnnoremap \u003cC-s\u003e vi(:w !dbq -\u003ccr\u003e\nvnoremap \u003cC-s\u003e :w !dbq -\u003ccr\u003e\n```\n\n![Vim demo](assets/vim-demo.svg)\n\n\n## Development and contributing\n\nFor development [pipenv](https://pipenv.kennethreitz.org/en/latest/) is required on your system. Set up the development environment with `make develop`, run with `pipenv run dbq ...` as needed. When submitting pull requests, ensure that `make lint` comes back clean; you can auto format the code with `make format`.\n\nWe welcome pull requests; if you are planning to perform bigger changes then it makes sense to file an issue first.\n\n\n## Security\n\nFor sensitive security matters please contact [security@getyourguide.com](mailto:security@getyourguide.com).\n\n\n## Legal\n\nCopyright 2019 GetYourGuide GmbH.\n\ndbq is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for the full text.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetyourguide%2Fdbq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetyourguide%2Fdbq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetyourguide%2Fdbq/lists"}