Functions
The following functions are available globally.
-
Returns a Boolean indicating whether the errors are identical.
-
Pattern matching matching for
Realm.Error
, so that the instances can be used with Swift’sdo { ... } catch { ... }
syntax.
-
Returns the schema version for a Realm at a given local URL.
Throws
An
NSError
that describes the problem.Declaration
Swift
public func schemaVersionAtURL(_ fileURL: URL, encryptionKey: Data? = nil) throws -> UInt64
Parameters
fileURL
Local URL to a Realm file.
encryptionKey
64-byte key used to encrypt the file, or
nil
if it is unencrypted.
-
Returns whether the two object schemas are equal.
Declaration
Swift
public func == (lhs: ObjectSchema, rhs: ObjectSchema) -> Bool
-
Returns whether the two properties are equal.
-
Returns whether two
Realm
isntances are equal.
-
Returns whether the two schemas are equal.
-
Returns whether the two sort descriptors are equal.
Declaration
Swift
public func == (lhs: SortDescriptor, rhs: SortDescriptor) -> Bool