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