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

properties

Array of persisted RLMProperty objects for an object.

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

See Also

Declared In

RLMObjectSchema.h

Instance Methods

objectForKeyedSubscript:

Retrieve an RLMProperty object by name.

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