SKYPublicDatabase

@interface SKYPublicDatabase : SKYDatabase

Undocumented

  • Limit creation access of a record type to some roles

    Declaration

    Objective-C

    - (void)defineCreationAccessWithRecordType:(nonnull NSString *)recordType
                                         roles:(nonnull NSArray<SKYRole *> *)roles
                                    completion:
                                        (void (^_Nullable)(NSError *_Nullable))
                                            completionBlock;

    Swift

    func defineCreationAccess(withRecordType recordType: String, roles: [SKYRole], completion completionBlock: ((Error?) -> Void)? = nil)

    Parameters

    recordType

    Record type to set creation access

    roles

    Roles can create the record

    completionBlock

    Completion Block

  • Set default access of a record type

    Declaration

    Objective-C

    - (void)
    defineDefaultAccessWithRecordType:(nonnull NSString *)recordType
                               access:(nonnull SKYAccessControl *)accessControl
                           completion:(void (^_Nullable)(NSError *_Nullable))
                                          completionBlock;

    Swift

    func defineDefaultAccess(withRecordType recordType: String, access accessControl: SKYAccessControl, completion completionBlock: ((Error?) -> Void)? = nil)

    Parameters

    recordType

    Record type to set creation access

    accessControl

    Roles can create the record

    completionBlock

    Completion Block