gimlet icon indicating copy to clipboard operation
gimlet copied to clipboard

There's no disconnect context menu item

Open aadrian opened this issue 6 years ago • 2 comments

There's no disconnect context menu item on the connections in the Aliases Tab.

Since DBs in embedded mode (like H2) can have only one connection at a time, it's important to know if the connection is open, or not, and maybe disconnect.

Usually in most tools after the users clicks connect, the menu item(or action) is transformed in "Disconnect".

By this operation I don't mean to close the Tab that was opened :), but just the connection, in order to allow other tools to do something on the embedded DB.

aadrian avatar Aug 10 '18 21:08 aadrian

Maybe I can implement this with a button or the like on the Tab itself. There is no 1 - 1 association between an Alias and a Tab currently (and not planning to, frankly), so changing the context menu is not really an option.

By the way, what exactly is "embedded" mode? I only know of "in-memory" mode of certain databases, but that's only applicable per running JVM.

krpors avatar Sep 04 '18 10:09 krpors

By the way, what exactly is "embedded" mode? I only know of "in-memory" mode of certain databases, but that's only applicable per running JVM.

DB runs in the same JVM as the application. But it's not just "in-memory", it's also persistent and consistent - so it's suitable for production. It also means that only the running applications can create connections to the DB - so the performance is very high.

E.g. for H2 Database http://h2database.com/html/cheatSheet.html, you can see that the in-memory is different from the embedded mode.

aadrian avatar Sep 05 '18 21:09 aadrian