ObjectSchema
public final class ObjectSchema: CustomStringConvertible
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.
-
Returns the property with the given name, if it exists.
Declaration
Swift
public subscript(propertyName: String) -> Property? -
The name of the class the schema describes.
Declaration
Swift
public var className: String -
The property which serves as the primary key for the class the schema describes, if any.
Declaration
Swift
public var primaryKeyProperty: Property? -
A human-readable description of the properties contained in the object schema.
Declaration
Swift
public var description: String
-
Returns whether the two object schemas are equal.
Declaration
Swift
public static func == (lhs: ObjectSchema, rhs: ObjectSchema) -> Bool
View on GitHub
Install in Dash
ObjectSchema Class Reference