---
title: pendingDatabaseChanges
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/cksyncengine-5sie5/state-swift.class/pendingdatabasechanges
---

# pendingDatabaseChanges

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

## Declaration

```swift
final var pendingDatabaseChanges: [CKSyncEngine.PendingDatabaseChange] { get }
```

## Discussion

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 CKSyncEngine.Event.SentDatabaseChanges. 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 add(pendingDatabaseChanges:) and remove(pendingDatabaseChanges:) methods to modify the array’s contents.

## See Also

### Accessing pending changes

- [hasPendingUntrackedChanges](cloudkit/cksyncengine-5sie5/state-swift.class/haspendinguntrackedchanges.md)
- [pendingRecordZoneChanges](cloudkit/cksyncengine-5sie5/state-swift.class/pendingrecordzonechanges.md)
