Functions
The following functions are available globally.
-
Returns a Boolean indicating whether the errors are identical.
Declaration
Swift
public func == (lhs: Error, rhs: Error) -> Bool
-
Pattern matching matching for
Realm.Error, so that the instances can be used with Swift’sdo { ... } catch { ... }syntax.Declaration
Swift
public func ~= (lhs: Realm.Error, rhs: Error) -> Bool
-
Returns the schema version for a Realm at a given local URL.
Throws
An
NSErrorthat describes the problem.Declaration
Swift
public func schemaVersionAtURL(_ fileURL: URL, encryptionKey: Data? = nil) throws -> UInt64Parameters
fileURLLocal URL to a Realm file.
encryptionKey64-byte key used to encrypt the file, or
nilif it is unencrypted.
View on GitHub
Install in Dash
Functions Reference