This commit is contained in:
Gwendal Roué committed 2018-04-12 14:07:38 +02:00
1 parent 02927106ca
commit cc136922e5
1 file changed
+1 -1
+1 -1
View File
@@ -1309,7 +1309,7 @@ If an error is thrown within the transaction body, the transaction is rollbacked
If you want to insert a transaction between other database statements, you can use the Database.inTransaction() function, or even raw SQL statements:
```swift
dbPool.writeWithoutTransaction { db in // or dbQueue.inDatabase { ... }
try dbPool.writeWithoutTransaction { db in // or dbQueue.inDatabase { ... }
try db.inTransaction {
...
return .commit