---
title: database
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/cksyncengine-5sie5/database
---

# database

The associated database.

## Declaration

```swift
final var database: CKDatabase { get }
```

## Discussion

Discussion Multiple sync engines can run in the same process, each targeting a different database. For example, you may use one sync engine for a person’s private database and another for their shared database.

## See Also

### Accessing the engine’s attributes

- [state](cloudkit/cksyncengine-5sie5/state-swift.property.md)
- [CKSyncEngine.State](cloudkit/cksyncengine-5sie5/state-swift.class.md)
