File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
ktorm-core/src/main/kotlin/me/liuwj/ktorm/database Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -287,9 +287,9 @@ public class Database(
287287 */
288288 @OptIn(ExperimentalContracts ::class )
289289 public inline fun <T > useConnection (func : (Connection ) -> T ): T {
290- contract {
291- callsInPlace(func, InvocationKind .EXACTLY_ONCE )
292- }
290+ contract {
291+ callsInPlace(func, InvocationKind .EXACTLY_ONCE )
292+ }
293293
294294 try {
295295 val transaction = transactionManager.currentTransaction
@@ -324,9 +324,9 @@ public class Database(
324324 isolation : TransactionIsolation = TransactionIsolation .REPEATABLE_READ ,
325325 func : (Transaction ) -> T
326326 ): T {
327- contract {
328- callsInPlace(func, InvocationKind .EXACTLY_ONCE )
329- }
327+ contract {
328+ callsInPlace(func, InvocationKind .EXACTLY_ONCE )
329+ }
330330
331331 val current = transactionManager.currentTransaction
332332 val isOuter = current == null
@@ -385,9 +385,9 @@ public class Database(
385385 */
386386 @OptIn(ExperimentalContracts ::class )
387387 public inline fun <T > executeExpression (expression : SqlExpression , func : (PreparedStatement ) -> T ): T {
388- contract {
389- callsInPlace(func, InvocationKind .EXACTLY_ONCE )
390- }
388+ contract {
389+ callsInPlace(func, InvocationKind .EXACTLY_ONCE )
390+ }
391391
392392 val (sql, args) = formatExpression(expression)
393393
You can’t perform that action at this time.
0 commit comments