Schema
This class represents the collection of model object schemas persisted to Realm.
When using Realm, Schema
objects allow performing migrations and
introspecting the database’s schema.
Schemas map to collections of tables in the core database.
-
Returns the object schema with the given class name, if it exists.
Declaration
Swift
public subscript(className: String) -> ObjectSchema?
-
ObjectSchema
s for all object types in this Realm. Meant to be used during migrations for dynamic introspection.Declaration
Swift
public var objectSchema: [ObjectSchema]
-
Returns a human-readable description of the object schemas contained in this schema.
Declaration
Swift
public var description: String { return rlmSchema.description }