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

objectSchema

An NSArray containing RLMObjectSchema’s for all object types in this Realm. Meant to be used during migrations for dynamic introspection.

@property (nonatomic, readonly, copy) NSArray *objectSchema

See Also

Declared In

RLMSchema.h

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.

- (nullable 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