Skip to content

Idle disconnect and the Connection Log

The Database Explorer, the console toolbar and the status bar use the same words for a connection’s state:

State Meaning
Connected DataKlin is connected. Run opens a session if the console has none yet.
Connecting… DataKlin is connecting.
Disconnected Not connected. Expand the connection in the Database Explorer to connect.
Disconnected (idle) DataKlin disconnected it because it was idle (see below). The next thing you do reconnects.
Failed The last attempt to connect failed. The connection’s row shows the error, with Retry, Dismiss and Show log.

The status bar shows the active tab’s connection: its color, name and state, its schema, Read-only while read-only is on, and TLS only when the connection’s encryption is weaker than you asked for. Click the connection’s name there to connect, disconnect, edit the connection or show its log. While a statement runs, the status bar shows the time so far (for example Running 3.2 s), and afterwards the row count and time (8 rows · 6 ms).

A connection whose sessions have all been idle for 10 minutes is disconnected. It shows Disconnected (idle), with no pop-up, and the Connection Log records it. The next thing you do on it reconnects.

DataKlin never disconnects in the middle of work: not while a statement runs, not during a long fetch, and not while a session may hold an open transaction. If a database can’t tell DataKlin whether a session is in a transaction, DataKlin keeps that session open.

To change the time, or choose Never:

  • for every connection: Disconnect idle connections after (minutes) in Settings › Connections
  • for one connection: Disconnect when idle on the Options section of the connection dialog. Use default follows the setting above.

The Connection Log tab of the bottom panel shows one connection’s events (connected, reconnected, disconnected, idle timeout and failed) together with the queries run on it, newest first. Type in its filter to find an entry, and use Copy query on any query. Open it with Show Connection Log in the command center or in the status bar’s connection menu, or with Show log on a failed connection.

Events are kept for 30 days by default. Clear… deletes the connection’s logged events after asking, and can also clear its query history if you tick Also clear this connection’s query history. The queries come from the connection’s History.

Notifications open from the bell at the right end of the status bar, which shows how many you haven’t read. When a connection fails, DataKlin raises one notification with Reconnect and Show log, and the error also shows in the connection’s row and in its Connection Log.