Inherits from NSObject
Conforms to NSCopying
Declared in RLMObjectSchema.h
RLMObjectSchema.mm

Overview

This class represents Realm model object schemas persisted to Realm in an RLMSchema.

When using Realm, RLMObjectSchema objects allow performing migrations and introspecting the database’s schema.

Object schemas map to tables in the core database.

Properties

className

The name of the class this schema describes.

@property (nonatomic, readonly) NSString *className

Declared In

RLMObjectSchema.h

primaryKeyProperty

The property which is the primary key for this object (if any).

@property (nonatomic, readonly, nullable) RLMProperty *primaryKeyProperty

Declared In

RLMObjectSchema.h

properties

Array of persisted RLMProperty objects for an object.

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

See Also

Declared In

RLMObjectSchema.h

Instance Methods

isEqualToObjectSchema:

Returns YES if equal to objectSchema

- (BOOL)isEqualToObjectSchema:(RLMObjectSchema *)objectSchema

Declared In

RLMObjectSchema.h

objectForKeyedSubscript:

Retrieve an RLMProperty object by name.

- (nullable RLMProperty *)objectForKeyedSubscript:(id<NSCopying>)propertyName

Parameters

propertyName

The property’s name.

Return Value

RLMProperty object or nil if there is no property with the given name.

Declared In

RLMObjectSchema.h