Instance Property

database

The database that is the target of the operation.

Declaration

var database: CKDatabase? { get set }

Discussion

For operations you plan to execute from your own custom queue, use this property to specify the target database. Setting the database also sets the corresponding container, inherited from the CKOperation parent class. If the value of this property is nil, the operation targets the private database of the app’s default container.

The default value of this property is nil.

See Also

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software