<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKSyncEngineState/pendingDatabaseChanges",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKSyncEngineState(py)pendingDatabaseChanges"
  },
  "title" : "pendingDatabaseChanges"
}
-->

# pendingDatabaseChanges

A list of database changes that the sync engine has yet to send to the iCloud servers.

```
@property (copy, readonly) NSArray<CKSyncEnginePendingDatabaseChange *> * pendingDatabaseChanges;
```

## Discussion

This array contains any pending database changes to send to the iCloud servers.
After the sync engine sends those changes, your app’s sync delegate receives an event of type [`CKSyncEngineSentDatabaseChangesEvent`](/documentation/CloudKit/CKSyncEngineSentDatabaseChangesEvent).

The sync engine keeps this list up-to-date while sending changes to the server.
For example, when it successfully saves a zone, it will remove that change from this list.
If it fails to send a change due to some retryable error (e.g. a network failure), it will keep that change in this list.

Use the [`addPendingDatabaseChanges:`](/documentation/CloudKit/CKSyncEngineState/addPendingDatabaseChanges:) and [`removePendingDatabaseChanges:`](/documentation/CloudKit/CKSyncEngineState/removePendingDatabaseChanges:) methods to modify the array’s contents.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)