diff --git a/README.md b/README.md index 1a4e2f73f..c5c87e896 100644 --- a/README.md +++ b/README.md @@ -4498,16 +4498,16 @@ try dbQueue.inTransaction { db in > :point_up: **Note**: for SQLite, empty deferred transactions are no transaction at all. In this case, the transaction callback is never executed: > -> ```swift -> // Empty deferred transaction -> dbQueue.inTransaction { db in -> db.afterNextTransactionCommit { db in -> // Never executed -> print("success") -> } -> return .commit +> ```swift +> // Empty deferred transaction +> dbQueue.inTransaction { db in +> db.afterNextTransactionCommit { db in +> // Never executed +> print("success") > } -> ``` +> return .commit +> } +> ``` ### TransactionObserver Protocol @@ -4729,14 +4729,14 @@ dbQueue.inDatabase { db in > :point_up: **Note**: for SQLite, empty deferred transactions are no transaction at all. In this case, an observer added with the `.nextTransaction` extent is never notified of any transaction: > -> ```swift -> // Empty deferred transaction -> dbQueue.inTransaction { db in -> // Observer is never notified of any transaction -> db.add(transactionObserver: observer, extent: .nextTransaction) -> return .commit -> } -> ``` +> ```swift +> // Empty deferred transaction +> dbQueue.inTransaction { db in +> // Observer is never notified of any transaction +> db.add(transactionObserver: observer, extent: .nextTransaction) +> return .commit +> } +> ``` #### Support for SQLite Pre-Update Hooks