|previous : next|
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
diagnosticsConnection setting allows for turning on/off the diagnostics functionality within jOOQ. It has 3 possible values:
DEFAULT: By default, the diagnostics functionality is turned off, but can be used explicitly via DSLContext.diagnosticsConnection() or DSLContext.diagnosticsDataSource(). This is ideal when building custom diagnostics utilities on top of jOOQ's SPIs.
ON: The diagnostics connection is activated implicitly on any JDBC
java.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.
Settings settings = new Settings() .withDiagnosticsConnection(DiagnosticsConnection.ON); // Defaults to DEFAULT