Enumerations
The following enumerations are available globally.
-
All errors thrown from CoreStore are expressed in
See moreCoreStoreErrorenum values.Declaration
Swift
public enum CoreStoreError : Error, CustomNSError, Hashableextension CoreStoreError: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
-
The
See moreMigrationTypespecifies the type of migration required for a store.Declaration
Swift
public enum MigrationType : Hashableextension MigrationType: CoreStoreDebugStringConvertible
-
The
See moreSelectTermis passed to theSelectclause to indicate the attributes/aggregate keys to be queried.Declaration
Swift
public enum SelectTerm<O> : ExpressibleByStringLiteral, Hashable where O : DynamicObjectextension SelectTerm: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
-
Global utilities
See moreDeclaration
Swift
public enum CoreStoreDefaults
-
The
See moreNSErrorerror codes forCoreStoreErrorDomain.Declaration
Swift
public enum CoreStoreErrorCode : Int
-
The
LogLevelindicates the severity of a log message.Declaration
Swift
public enum LogLevel
-
The containing type for value properties. Use the
DynamicObject.Valuetypealias instead for shorter syntax.
See moreclass Animal: CoreStoreObject { let species = Value.Required<String>("species", initial: "") let nickname = Value.Optional<String>("nickname") let color = Transformable.Optional<UIColor>("color") }Declaration
Swift
public enum ValueContainer<O> where O : CoreStoreObject
-
The containing type for transformable properties. Use the
DynamicObject.Transformabletypealias instead for shorter syntax.
See moreclass Animal: CoreStoreObject { let species = Value.Required<String>("species", initial: "") let nickname = Value.Optional<String>("nickname") let color = Transformable.Optional<UIColor>("color") }Declaration
Swift
public enum TransformableContainer<O> where O : CoreStoreObject
-
The containing type for relationships. Use the
DynamicObject.Relationshiptypealias instead for shorter syntax.
See moreclass Dog: CoreStoreObject { let master = Relationship.ToOne<Person>("master") } class Person: CoreStoreObject { let pets = Relationship.ToManyUnordered<Dog>("pets", inverse: { $0.master }) }Declaration
Swift
public enum RelationshipContainer<O> where O : CoreStoreObject
-
The containing type for value properties. Use the
Fieldtypealias instead for shorter syntax.
See moreclass Pet: CoreStoreObject { @Field.Stored("species") var species = "" @Field.Stored("nickname") var nickname: String? @Field.Coded("color", coder: FieldCoders.Plist.self) var eyeColor: UIColor? @Field.Relationship("owner", inverse: \.$pets) var owner: Person? @Field.Relationship("children") var children: Array<Pet> @Field.Relationship("parents", inverse: \.$children) var parents: Set<Pet> }Declaration
Swift
public enum FieldContainer<O> where O : CoreStoreObject
-
Namespace for diffable data source types. See
See moreDiffableDataSource.TableViewAdapterandDiffableDataSource.CollectionViewAdapterfor actual implementationsDeclaration
Swift
public enum DiffableDataSource -
Namespace for Built-in Field Coders
See moreDeclaration
Swift
public enum FieldCoders
-
A
MigrationProgresscontains info on aLocalStorage‘s setup progress.See also
DataStack.reactive.addStorage(_:)See moreSee also
DataStack.async.addStorage(_:)Declaration
Swift
public enum MigrationProgress<T> where T : LocalStorage
View on GitHub
Enumerations Reference