-
Notifications
You must be signed in to change notification settings - Fork 99
Introduce "psql" command to connect to Lakebase instances #3128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27ae1f5
to
ef52279
Compare
|
denik
reviewed
Jul 9, 2025
dd6e12c
to
d0aeebf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the PR description. It refers to the databricks connect
command.
7820548
to
f400e10
Compare
<!-- Brief summary of your changes that is easy to understand --> <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> <!-- How have you tested the changes? --> <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. --> add a local-only acceptance test add test output files execute psql command using exec.Execv add support for by-passing arguments to psql
## Changes <!-- Brief summary of your changes that is easy to understand --> ## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> ## Tests <!-- How have you tested the changes? --> <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
Co-authored-by: Pieter Noordhuis <[email protected]>
7b1be11
to
99cda31
Compare
deco-sdk-tagging bot
added a commit
that referenced
this pull request
Jul 16, 2025
## Release v0.260.0 ### Notable Changes * Added support for creating SQL warehouses in DABs ([#3129](#3129)) ### Dependency updates * Upgrade Go SDK to 0.75.0 ([#3256](#3256)) ### CLI * Add `databricks psql` command to connect to Lakebase with a single command ([#3128](#3128)) ### Bundles * Jobs that use cluster policy default values for their cluster configuration now correctly update those defaults on every deployment ([#3255](#3255)). * Add upper and lower helper methods for bundle templates ([#3242](#3242))
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jul 18, 2025
…rectory is provided (#3267) ## Why <!-- Why are these changes needed? Provide the context that the reviewer might be missing. For example, were there any decisions behind the change that are not reflected in the code itself? --> This is a follow-up for the comment in the previous PR #3128 : #3128 (comment) ## Tests <!-- How have you tested the changes? --> - Existing acceptance test on cmd/psql is still passing even though the production code is not specifying a directory - Manually checked that when executed with `pwd` the process prints current working directory on Mac and on Windows <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Adds "databricks psql" command to Databricks CLI
Usage:
databricks psql <your db instance name>
Command also supports auto-complete and selector for the instance name:
databricks psql<ENTER>
for drop-downdatabricks psql <TAB><TAB>
for auto-completeWhy
Lakebase provides API calls to fetch database credentials, but then it is up to the user to run their
psql
client and provide those credentials there. This change allows users to connect to their Lakebase instance with a single commandTests
Manual local tests via building the CLI and running the introduced command against Databricks workspace
Local-only acceptance test added for Linux and Darwin platforms
Manual end-to-end test on Windows platform