Skip to content
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

Feature Request: Export\Import Connections Descriptions #3076

Open
AndrewKhitrin opened this issue Mar 5, 2018 · 5 comments
Open

Feature Request: Export\Import Connections Descriptions #3076

AndrewKhitrin opened this issue Mar 5, 2018 · 5 comments

Comments

@AndrewKhitrin
Copy link
Contributor

We need ability to export Database Connection Description in a transportable file and ability to import such file in other Database Connection Tree

@jerherder
Copy link

HEllo

you can export the connexions in copying the file .dbeaver-data-sources.xml in c:\users\username.dbeaver4\General

@juliardi
Copy link
Contributor

juliardi commented Apr 4, 2018

+1 for this. Yes, we can export the entire connection by copying .dbeaver-data-sources.xml file. But, what if we only need to export a single connection?

@p91paul
Copy link
Contributor

p91paul commented Aug 9, 2018

@AndrewKhitrin has interest for implementing this feature declined? I've seen other bug reports requesting the same (e.g #3440). In https://github.com/dbeaver/dbeaver/wiki/Admin-Manage-Connections#importing-connections-from-csvxml it is stated that you can import from csv/xml but not how you would do such an import.

@givanovexpe
Copy link

givanovexpe commented Nov 6, 2018

@AndrewKhitrin the Import fuctionality works for connections without any custom properties. What I mean is that the supported keys for the import wizard are:

name Connection name
url JDBC URL
host Database server host name
port Database server port
database Database/schema name
user User name
password User password

However the ImportConnectionInfo class at dbeaver/plugins/org.jkiss.dbeaver.ext.import_config/src/org/jkiss/dbeaver/ext/import_config/wizards/ImportConnectionInfo.java supports not only simple connection properties in the constructor but also properties and providerproperties. It will be very difficult to define an input schema for these in the csv import format, but trivial to define in xml (as it can mirror the dbeaver connection config format).

I would like to be able to define custom properties in my import xml file. An use case for this is import the configuration for connecting to redshift (using AD credentials). For instance:

<connection name="Postgre Import XML 1" host="remote-redshift-cluster" port="5439" database="sample" url="jdbc:postgresql:iam://remote-redshift-cluster:5439/sample" user="postgres" password="postgres" type="dev">
    <property name="idp_port" value="443"/>
    <property name="DbGroups" value="readonly"/>
    <property name="idp_host" value="sso-endpoint"/>
    <property name="plugin_name" value="com.amazon.redshift.plugin.AdfsCredentialsProvider"/>
    <property name="preferred_role" value="arn:aws:iam::123456789123:role/redshift"/>
</connection>

@dellagustin-sap
Copy link

dellagustin-sap commented Nov 11, 2019

@p91paul I did not test it yet, but I am assuming (and will eventually test) that it is File -> Import, Select Third Party Configuration then Custom, select the driver and then you will be shown a dialog window to select your CSV or XML file. That is for importing, I did not find a way to export them.

Here are some screenshots for you:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants