Platforms to show: All Mac Windows Linux Cross-Platform
CKDatabaseMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CloudKit | MBS Mac64bit Plugin | 16.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
An app container has a public database whose data is accessible to all users and a private database whose data is accessible only to the current user. A database object takes requests for data and applies them to the appropriate part of the container.
You do not create database objects yourself, nor should you subclass CKDatabaseMBS. Your app’s CKContainerMBS objects provide the CKDatabaseMBS objects you use to access the associated data. Use database objects as-is to perform operations on data.
The public database is always available, regardless of whether the device has an an active iCloud account. When no iCloud account is available, your app may fetch records and perform queries on the public database, but it may not save changes. (Saving records to the public database requires an active iCloud account to identify the owner of those records.) Access to the private database always requires an active iCloud account on the device.
see
https://developer.apple.com/reference/cloudkit/ckdatabase
- 12 events
- event deleteRecordWithIDCompleted(recordID as CKRecordIDMBS, error as NSErrorMBS, tag as Variant)
- event deleteRecordZoneWithIDCompleted(zoneID as CKRecordZoneIDMBS, error as NSErrorMBS, tag as Variant)
- event deleteSubscriptionWithIDCompleted(subscriptionID as String, error as NSErrorMBS, tag as Variant)
- event fetchAllRecordZonesCompleted(zones() as CKRecordZoneMBS, error as NSErrorMBS, tag as Variant)
- event fetchAllSubscriptionsCompleted(subscriptions() as CKSubscriptionMBS, error as NSErrorMBS, tag as Variant)
- event fetchRecordWithIDCompleted(recordID as CKRecordIDMBS, record as CKRecordMBS, error as NSErrorMBS, tag as Variant)
- event fetchRecordZoneWithIDCompleted(zoneID as CKRecordZoneIDMBS, zone as CKRecordZoneMBS, error as NSErrorMBS, tag as Variant)
- event fetchSubscriptionWithIDCompleted(subscriptionID as String, subscription as CKSubscriptionMBS, error as NSErrorMBS, tag as Variant)
- event performQueryCompleted(query as CKQueryMBS, zoneID as CKRecordZoneIDMBS, results() as CKRecordMBS, error as NSErrorMBS, tag as Variant)
- event saveRecordCompleted(record as CKRecordMBS, error as NSErrorMBS, tag as Variant)
- event saveRecordZoneCompleted(zone as CKRecordZoneMBS, error as NSErrorMBS, tag as Variant)
- event saveSubscriptionCompleted(subscription as CKSubscriptionMBS, error as NSErrorMBS, tag as Variant)
- 2 properties
- property databaseScope as Integer
- property Handle as Integer
- 18 methods
- method addOperation(operation as CKDatabaseOperationMBS)
- method Constructor(Container as CKContainerMBS, databaseScope as Integer)
- method Constructor(Database as CKDatabaseMBS)
- method deleteRecordWithID(recordID as CKRecordIDMBS, tag as Variant = nil)
- method deleteRecordWithIDSync(recordID as CKRecordIDMBS, byref error as NSErrorMBS)
- method deleteRecordZone(zoneID as CKRecordZoneIDMBS, tag as Variant = nil)
- method deleteSubscriptionWithID(subscriptionID as String, tag as Variant = nil)
- method fetchAllRecordZones(tag as Variant = nil)
- method fetchAllSubscriptions(tag as Variant = nil)
- method fetchRecordWithID(recordID as CKRecordIDMBS, tag as Variant = nil)
- method fetchRecordWithIDSync(recordID as CKRecordIDMBS, byref record as CKRecordMBS, byref error as NSErrorMBS)
- method fetchRecordZoneWithID(zoneID as CKRecordZoneIDMBS, tag as Variant = nil)
- method fetchSubscriptionWithID(subscriptionID as String, tag as Variant = nil)
- method performQuery(query as CKQueryMBS, zoneID as CKRecordZoneIDMBS, tag as Variant = nil)
- method saveRecord(record as CKRecordMBS, tag as Variant = nil)
- method saveRecordSync(record as CKRecordMBS, byref error as NSErrorMBS)
- method saveRecordZone(zone as CKRecordZoneMBS, tag as Variant = nil)
- method saveSubscription(subscription as CKSubscriptionMBS, tag as Variant = nil)
- shared method Available as Boolean
- 3 constants
Database Scopes
Constant | Value | Description |
---|---|---|
ScopePrivate | 2 |
The private database. |
ScopePublic | 1 |
The public database. |
ScopeShared | 3 |
The shared database. |
This class has no sub classes.
Some properties using for this class:
- CKContainerMBS.privateCloudDatabase as CKDatabaseMBS
- CKContainerMBS.publicCloudDatabase as CKDatabaseMBS
- CKContainerMBS.sharedCloudDatabase as CKDatabaseMBS
- CKDatabaseOperationMBS.database as CKDatabaseMBS
Blog Entries
Release notes
- Version 21.3
- Fixed saveRecordZoneCompleted event for CKDatabaseMBS class.
- Version 21.2
- Added new constructor for CKDatabaseMBS class to create a copy with your subclass.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
CKContainerMBS - CKDatabaseNotificationMBS
