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
Add dbeaver host command support #5375
Comments
I've reopened #4950. Could you bring it along to completion? We can also just remove the lines that say we support things that we don't have time to test. |
Updated to make the Linux portion simpler:
|
This was completed in In the future we can figure out how to add other OSes etc. |
will you keep the work on this? will ddev dbeaver support windows with wsl2? |
"linux-gnu")
# Check for different binaries. Launch the first one found.
BINARIES=(
/usr/bin/dbeaver{,-ce,-le,-ue,-ee}
/var/lib/flatpak/exports/bin/io.dbeaver.DBeaverCommunity
/snap/bin/dbeaver-ce
'/mnt/c/Program Files/dbeaver/dbeaver.exe'
)
for binary in "${BINARIES[@]}"; do
if [ -x "$binary" ]; then
echo "Launching $binary"
"$binary" -con "$CONNECTION" &> /dev/null & disown
exit 0
fi
done
;; i just tested the script above and it worked for windows with wsl2 and dbeaver community all i did was to add dbeaver location |
Please do a PR if you have a working setup, thanks! |
i just created a custom command to test it. i didn't compile ddev locally 😅 |
If you just edit this: https://github.com/ddev/ddev/blob/master/pkg/ddevapp/global_dotddev_assets/commands/host/dbeaver with your fix, it will offer to create a PR. Then it will automatically build and create artifacts that you can use to test. See https://ddev.readthedocs.io/en/stable/developers/building-contributing/#testing-a-pr Would love to have your PR! |
Is there an existing issue for this?
Is your feature request related to a problem?
The dbeaver client is not currently supported by a ddev command.
Describe your solution
Support a ddev dbeaver command that auto connects, saves the connection and puts the connection in the DDEV folder for DBeaver for the current running DDEV project. Assumes db name/user/password are DDEV default.
This builds off of the effort started by @MakerTim.
Add a
dbeaver
command:This will:
Running the command will open DBeaver with the SQL console open every time, even after a restart and the published port changes.
Tested on: MacOS Ventura
Needs testing:
I can check Fedora when I am home in two weeks... I don't have a good way to test those OS above otherwise.
Describe alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: