Functions
The following functions are available globally.
-
Undocumented
-
Undocumented
-
Get the schema version for a Realm at a given path. - parameter realmPath: Path to a Realm file. - parameter encryptionKey: Optional 64-byte encryption key for encrypted Realms. - parameter error: If an error occurs, upon return contains an
NSError
object that describes the problem. If you are not interested in possible errors, omit the argument, or pass innil
.Declaration
Swift
public func schemaVersionAtPath(realmPath: String, encryptionKey: NSData? = nil, error: NSErrorPointer = nil) -> UInt64?
-
Undocumented
-
Performs the configuration’s migration block on the Realm created by the given configuration.
This method is called automatically when opening a Realm for the first time and does not need to be called explicitly. You can choose to call this method to control exactly when and how migrations are performed.
Declaration
Swift
public func migrateRealm(configuration: Realm.Configuration = Realm.Configuration.defaultConfiguration) -> NSError?
-
Returns whether the two object schemas are equal.
Declaration
Swift
public func ==(lhs: ObjectSchema, rhs: ObjectSchema) -> Bool
-
Returns whether the two properties are equal.
Declaration
Swift
public func ==(lhs: Property, rhs: Property) -> Bool
-
Returns whether the two realms are equal.
Declaration
Swift
public func ==(lhs: Realm, rhs: Realm) -> Bool
-
Returns whether the two schemas are equal.
Declaration
Swift
public func ==(lhs: Schema, rhs: Schema) -> Bool
-
Returns whether the two sort descriptors are equal.
Declaration
Swift
public func ==(lhs: SortDescriptor, rhs: SortDescriptor) -> Bool