Structs
The following structs are available globally.
-
Migration
instances encapsulate information intended to facilitate a schema migration.A
See moreMigration
instance is passed into a user-definedMigrationBlock
block when updating the version of a Realm. This instance provides access to the old and new database schemas, the objects in the Realm, and provides functionality for modifying the Realm during the migration.Declaration
Swift
public struct Migration
-
Declaration
Swift
public struct PropertyChange
-
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.
See moreDeclaration
Swift
public struct ObjectSchema: CustomStringConvertible
-
Property
instances represent properties managed by a Realm in the context of an object schema. Such properties may be persisted to a Realm file or computed from other data in the Realm.When using Realm, property instances allow performing migrations and introspecting the database’s schema.
Property instances map to columns in the core database.
See moreDeclaration
Swift
public struct Property: CustomStringConvertible
-
An iterator for a
See moreRealmCollection
instance.Declaration
Swift
public struct RLMIterator<Element: RealmCollectionValue>: IteratorProtocol
-
Schema
instances represent collections of model object schemas managed by a Realm.When using Realm,
Schema
instances allow performing migrations and introspecting the database’s schema.Schemas map to collections of tables in the core database.
See moreDeclaration
Swift
public struct Schema: CustomStringConvertible
-
A
See moreSortDescriptor
stores a key path and a sort order for use withsorted(sortDescriptors:)
. It is similar toNSSortDescriptor
, but supports only the subset of functionality which can be efficiently run by Realm’s query engine.Declaration
Swift
public struct SortDescriptor
-
A
See moreSyncConfiguration
represents configuration parameters for Realms intended to sync with a Realm Object Server.Declaration
Swift
public struct SyncConfiguration
-
A
See moreSyncCredentials
represents data that uniquely identifies a Realm Object Server user.Declaration
Swift
public struct SyncCredentials