We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fa178b commit e5489c4Copy full SHA for e5489c4
ktorm-global/src/main/kotlin/org/ktorm/global/Global.kt
@@ -256,7 +256,7 @@ public inline fun <T> useConnection(func: (Connection) -> T): T {
256
* @see Database.useTransaction
257
*/
258
@OptIn(ExperimentalContracts::class)
259
-public inline fun <T> useTransaction(isolation: TransactionIsolation?, func: (Transaction) -> T): T {
+public inline fun <T> useTransaction(isolation: TransactionIsolation? = null, func: (Transaction) -> T): T {
260
contract {
261
callsInPlace(func, InvocationKind.EXACTLY_ONCE)
262
}
0 commit comments