BDatabaseConfig

Properties

Link copied to clipboard
@ConfigurationValue(path = "botcommands.database.dumpLongTransactions", defaultValue = "false")
abstract val dumpLongTransactions: Boolean

Whether transactions should trigger a coroutine dump & thread dump when running longer than the max transaction duration

Link copied to clipboard
@ConfigurationValue(path = "botcommands.database.logQueries", defaultValue = "false")
abstract val logQueries: Boolean

Determines whether all SQL queries should be logged on TRACE.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.database.logQueryParameters", defaultValue = "true")
abstract val logQueryParameters: Boolean

Determines if the SQL query logger will replace query parameters by their value.

Link copied to clipboard
@ConfigurationValue(path = "botcommands.database.queryLogThreshold", type = "java.time.Duration")
abstract val queryLogThreshold: Duration

The duration a query has to run for it to be logged on WARN.

Functions

Link copied to clipboard

The duration a query has to run for it to be logged on WARN.