RLMObjectSchema
@interface RLMObjectSchema : NSObject <NSCopying>
This class represents Realm model object schemas.
When using Realm, RLMObjectSchema instances allow performing migrations and
introspecting the database’s schema.
Object schemas map to tables in the core database.
-
An array of
RLMPropertyinstances representing the managed properties of a class described by the schema.See
RLMPropertyDeclaration
Objective-C
@property (readonly, copy, nonatomic) NSArray<RLMProperty *> *_Nonnull properties; -
The name of the class the schema describes.
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull className; -
The property which serves as the primary key for the class the schema describes, if any.
Declaration
Objective-C
@property (readonly, nonatomic, nullable) RLMProperty *primaryKeyProperty;
-
Retrieves an
RLMPropertyobject by the property name.Declaration
Objective-C
- (nullable RLMProperty *)objectForKeyedSubscript: (nonnull NSString *)propertyName;Parameters
propertyNameThe property’s name.
Return Value
An
RLMPropertyobject, ornilif there is no property with the given name. -
Returns whether two
RLMObjectSchemainstances are equal.Declaration
Objective-C
- (BOOL)isEqualToObjectSchema:(nonnull RLMObjectSchema *)objectSchema;
View on GitHub
Install in Dash
RLMObjectSchema Class Reference