File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ public final class Database {
238
238
/// failure.
239
239
///
240
240
/// :returns: The COMMIT or ROLLBACK statement.
241
- public func transaction( _ mode: TransactionMode = . Deferred, _ block: Statement -> TransactionResult ) -> Statement {
241
+ public func transaction( _ mode: TransactionMode = . Deferred, @ noescape _ block: Statement -> TransactionResult ) -> Statement {
242
242
return run ( block ( transaction ( mode) ) . rawValue)
243
243
}
244
244
@@ -312,7 +312,7 @@ public final class Database {
312
312
/// depending on success or failure.
313
313
///
314
314
/// :returns: The RELEASE or ROLLBACK statement.
315
- public func savepoint( _ savepointName: String ? = nil , _ block: Statement -> SavepointResult ) -> Statement {
315
+ public func savepoint( _ savepointName: String ? = nil , @ noescape _ block: Statement -> SavepointResult ) -> Statement {
316
316
switch block ( savepoint ( savepointName) ) {
317
317
case . Release:
318
318
return release ( )
You can’t perform that action at this time.
0 commit comments