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

# database

The associated database.

## Declaration

```swift
var database: CKDatabase
```

## 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. important: When using CloudKit’s production environment, don’t create multiple sync engines that target the same database. You can, however, do this in the development environment to help testing — for example, to simulate multiple devices syncing back and forth.

## See Also

### Managing attributes

- [automaticallySync](cloudkit/cksyncengine-5sie5/configuration/automaticallysync.md)
- [subscriptionID](cloudkit/cksyncengine-5sie5/configuration/subscriptionid.md)
- [stateSerialization](cloudkit/cksyncengine-5sie5/configuration/stateserialization.md)
