I am working in several projects where every one has its own database connections.
So far, I have been using DBeaver, adding the connections by hand, but at the end, having the connections, data, SQL scripts, tabs, etc. for all the projects in the same place results in a chaotic environment.
So, I am trying to create a tool able to launch DBeaver which the configuration (i.e. connections) specific to a project.
Looking at the [docs](https://dbeaver.com/docs/dbeaver/Command-Line/#command-line-parameters) , it should be an easy task, but I can not get it to work.
I have tried multiple combinations of parameters for the
-con
argument (create
, save
, connect
, openConsole
, url
, folder
, database
, etc.) but I am not able to open dbeaver UI with a new connection.
For instance:
dbeaver-ce \
-data . \
-con "driver=sqlite|database=one.sqlite|folder=/home/salva/projects/one|name=one|openConsole=true|connect=true|save=true|create=true" \
-f
I am unable to find the exact spell that would make it work and would appreciate any advice on the matter!
**Update**: It seems it was a PEBCAK, I had not noticed I already had a DBeaver instance open in another workspace, and because of that, nothing was apparently happening when I run the command with the new connection, I found that adding the -f
flag (without its required argument), would made DBeaver to appear but then, -con
was not handled, probably because of the broken -f
!
In any case, it is working now!
Asked by salva
(101 rep)
Nov 11, 2024, 03:41 PM
Last activity: Nov 14, 2024, 11:58 AM
Last activity: Nov 14, 2024, 11:58 AM