@@ -328,7 +328,7 @@ public final class Connection {
328
328
/// must throw to roll the transaction back.
329
329
///
330
330
/// - Throws: `Result.Error`, and rethrows.
331
- public func transaction( _ mode: TransactionMode = . deferred, block: @escaping ( ) throws -> Void ) throws {
331
+ public func transaction( _ mode: TransactionMode = . deferred, block: ( ) throws -> Void ) throws {
332
332
try transaction ( " BEGIN \( mode. rawValue) TRANSACTION " , block, " COMMIT TRANSACTION " , or: " ROLLBACK TRANSACTION " )
333
333
}
334
334
@@ -348,14 +348,14 @@ public final class Connection {
348
348
/// The block must throw to roll the savepoint back.
349
349
///
350
350
/// - Throws: `SQLite.Result.Error`, and rethrows.
351
- public func savepoint( _ name: String = UUID ( ) . uuidString, block: @escaping ( ) throws -> Void ) throws {
351
+ public func savepoint( _ name: String = UUID ( ) . uuidString, block: ( ) throws -> Void ) throws {
352
352
let name = name. quote ( " ' " )
353
353
let savepoint = " SAVEPOINT \( name) "
354
354
355
355
try transaction ( savepoint, block, " RELEASE \( savepoint) " , or: " ROLLBACK TO \( savepoint) " )
356
356
}
357
357
358
- fileprivate func transaction( _ begin: String , _ block: @escaping ( ) throws -> Void , _ commit: String , or rollback: String ) throws {
358
+ fileprivate func transaction( _ begin: String , _ block: ( ) throws -> Void , _ commit: String , or rollback: String ) throws {
359
359
return try sync {
360
360
try self . run ( begin)
361
361
do {
0 commit comments