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 {
238238 /// failure.
239239 ///
240240 /// :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 {
242242 return run ( block ( transaction ( mode) ) . rawValue)
243243 }
244244
@@ -312,7 +312,7 @@ public final class Database {
312312 /// depending on success or failure.
313313 ///
314314 /// :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 {
316316 switch block ( savepoint ( savepointName) ) {
317317 case . Release:
318318 return release ( )
You can’t perform that action at this time.
0 commit comments