Missing Transaction For Multi-Write (ARCH9065)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Key swift.orm.missing-transaction-for-multi-write · Severity warning · Category orm
Flags two or more context.save() / db.write calls in one function - the second failing leaves the first committed.
Incorrect
Section titled “Incorrect”try context.save()...try context.save()Correct
Section titled “Correct”make all changes, then one try context.save()Save once after all changes, or wrap them in one transaction.