RLMSchema Class Reference
Inherits from | NSObject |
Conforms to | NSCopying |
Declared in | RLMSchema.h RLMSchema.mm |
Overview
This class represents the collection of model object schemas persisted to Realm.
When using Realm, RLMSchema objects allow performing migrations and introspecting the database’s schema.
Schemas map to collections of tables in the core database.
Properties
Instance Methods
isEqualToSchema:
Returns YES if schema are equal
- (BOOL)isEqualToSchema:(RLMSchema *)schema
Declared In
RLMSchema.h
objectForKeyedSubscript:
Look up an RLMObjectSchema for the given class name in this Realm. Throws if there is no object of type className in this RLMSchema instance.
- (RLMObjectSchema *)objectForKeyedSubscript:(id<NSCopying>)className
Parameters
- className
The object class name.
Return Value
RLMObjectSchema for the given class in this Realm.
See Also
Declared In
RLMSchema.h
schemaForClassName:
Returns an RLMObjectSchema for the given class name in this RLMSchema.
- (RLMObjectSchema *)schemaForClassName:(NSString *)className
Parameters
- className
The object class name.
Return Value
RLMObjectSchema for the given class in this RLMSchema.
See Also
Declared In
RLMSchema.h