ObjectSchema

This class represents Realm model object schemas.

When using Realm, ObjectSchema instances allow performing migrations and introspecting the database’s schema.

Object schemas map to tables in the core database.

Properties

  • An array of Property instances representing the managed properties of a class described by the schema.

    See

    Property
  • The name of the class the schema describes.

  • The object class the schema describes.

  • Whether this object is embedded.

  • Whether this object is asymmetric.

  • The property which serves as the primary key for the class the schema describes, if any.

  • A human-readable description of the properties contained in the object schema.

Property Retrieval

  • Returns the property with the given name, if it exists.

Equatable

  • Returns whether the two object schemas are equal.