Diagnostics Connection
Supported by ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
The diagnosticsConnection setting allows for turning on/off the diagnostics functionality within jOOQ.
There are 3 possible values:
-
DEFAULT: By default, the diagnostics functionality is turned off, but can be used explicitly viaDSLContext.diagnosticsConnection()orDSLContext.diagnosticsDataSource(). This is ideal when building custom diagnostics utilities on top of jOOQ's SPIs. -
ON: The diagnostics connection is activated implicitly on any JDBCjava.sql.Connectionthat jOOQ works with. This is ideal when quickly turning on diagnostics on a development or integration test environment. -
OFF: The diagnostics connection is deactivated even when used explicitly.
Example configuration
Settings settings = new Settings()
.withDiagnosticsConnection(DiagnosticsConnection.ON); // Defaults to DEFAULT
Feedback
Do you have any feedback about this page? We'd love to hear it!