This commit is contained in:
InsanusMokrassar 2022-09-04 15:57:40 +06:00
parent 763718716d
commit dcfb66ef6c
2 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
## 2.3.0 ## 2.3.0
* `Bot`: * `Bot`:
* Add option `waitForConnection` in database config * Add option `reconnectOptions` in database config
## 2.2.0 ## 2.2.0

View File

@ -33,6 +33,7 @@ data class DatabaseConfig(
password password
).also { ).also {
it.transactionManager.defaultIsolationLevel = Connection.TRANSACTION_SERIALIZABLE // Or Connection.TRANSACTION_READ_UNCOMMITTED it.transactionManager.defaultIsolationLevel = Connection.TRANSACTION_SERIALIZABLE // Or Connection.TRANSACTION_READ_UNCOMMITTED
it.connector().close()
} }
}.onFailure { }.onFailure {
logger.e(it) logger.e(it)