Intellij IDEA stores datasource connections locally. It would be super cool if Test Resources could have an opt-in feature to easily add them when spinning up a database container. Options that come to my mind described below.
Copy datasource settings to a build/target file, to the clipboard, or to the system output
Intellij already allows copy/pasting datasources. When you copy, what it pastes is something like this:
Intellij IDEA stores datasource connections locally. It would be super cool if Test Resources could have an opt-in feature to easily add them when spinning up a database container. Options that come to my mind described below.
Copy datasource settings to a
build
/target
file, to the clipboard, or to the system outputIntellij already allows copy/pasting datasources. When you copy, what it pastes is something like this:
We could dump this to a file, to the system out, or even copy to the clipboard so that I can paste it and start doing queries.
Add the datasource directly to
.idea
files.Datasources are stored internally in these files (the files can contain multiple
<data-source>
tags):It would be ✨magical if we could automatically add/remove these entries