---
title: database
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/cksyncengineconfiguration/database
---

# database

The associated database.

## Declaration

```occ
@property (strong) CKDatabase * database;
```

## 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/cksyncengineconfiguration/automaticallysync.md)
- [subscriptionID](cloudkit/cksyncengineconfiguration/subscriptionid.md)
- [stateSerialization](cloudkit/cksyncengineconfiguration/stateserialization.md)
