Enumerations
The following enumerations are available globally.
-
All errors thrown from CoreStore are expressed in
See moreCoreStoreError
enum values.Declaration
Swift
public enum CoreStoreError : Error, CustomNSError, Hashable
extension CoreStoreError: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
-
The
See moreMigrationType
specifies the type of migration required for a store.Declaration
Swift
public enum MigrationType : Hashable
extension MigrationType: CoreStoreDebugStringConvertible
-
The
See moreSelectTerm
is passed to theSelect
clause to indicate the attributes/aggregate keys to be queried.Declaration
Swift
public enum SelectTerm<O> : ExpressibleByStringLiteral, Hashable where O : DynamicObject
extension SelectTerm: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
-
Global utilities
See moreDeclaration
Swift
public enum CoreStoreDefaults
-
The
See moreNSError
error codes forCoreStoreErrorDomain
.Declaration
Swift
public enum CoreStoreErrorCode : Int
-
The
LogLevel
indicates the severity of a log message.Declaration
Swift
public enum LogLevel
-
The containing type for value properties. Use the
DynamicObject.Value
typealias 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.Transformable
typealias 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.Relationship
typealias 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
Field
typealias 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.TableViewAdapter
andDiffableDataSource.CollectionViewAdapter
for actual implementationsDeclaration
Swift
public enum DiffableDataSource
-
Namespace for Built-in Field Coders
See moreDeclaration
Swift
public enum FieldCoders
-
A
MigrationProgress
contains info on aLocalStorage
‘s setup progress.See also
DataStack.reactive.addStorage(_:)See also
DataStack.async.addStorage(_:)Declaration
Swift
public enum MigrationProgress<T> where T : LocalStorage