The abstract parent class for operations that act on databases in CloudKit.


class CKDatabaseOperation : CKOperation


Database operations typically involve fetching and saving records and other database objects, as well as queries on the contents of the database. You use the property of this class to tell the operation object which database to use when executing its task. Do not subclass this class or create instances of it. Instead, create instances of one of its concrete subclasses.


Accessing the Database

var database: CKDatabase?

The database that is the target of the operation.


Inherits From

Conforms To

See Also

Base Classes

class CKOperation

The abstract base class for all operations that can be executed against a CloudKit database.