Type Aliases
The following type aliases are available globally.
-
A
Stringthat pertains to the name of an *.xcdatamodeld file (without the file extension).Declaration
Swift
public typealias XcodeDataModelFileName = String
-
An
Optional<String>that pertains to the name of a “Configuration” which particular groups of entities may belong to. Whennil, pertains to the default configuration which includes all entities.Declaration
Swift
public typealias ModelConfiguration = String?
-
An
Stringthat pertains to the name of a versioned *.xcdatamodeld file (without the file extension). Model version strings don’t necessarily have to be numeric or ordered in any way. The migration sequence will always be decided by (or the lack of) theMigrationChain.Declaration
Swift
public typealias ModelVersion = String
-
An
Stringthat pertains to an Entity name.Declaration
Swift
public typealias EntityName = String
-
An
Stringthat pertains to a dynamically-accessable class name (usable with NSClassFromString(…)).Declaration
Swift
public typealias ClassName = String
-
An
Stringthat pertains to a attribute keyPaths.Declaration
Swift
public typealias KeyPathString = String
-
The
MigrationResultindicates the result of a migration.MigrationResult.successindicates either the migration succeeded, or there were no migrations needed. The associated value is an array ofMigrationTypes reflecting the migration steps completed.MigrationResult.failureindicates that the migration failed. The associated object for this value is the aCoreStoreErrorenum value.dataStack.upgradeStorageIfNeeded(SQLiteStorage(fileName: "data.sqlite")) { (result) in switch result { case .success(let migrationSteps): // ... case .failure(let error): // ... } }Declaration
Swift
public typealias MigrationResult = Swift.Result<[MigrationType], CoreStoreError>
-
The
SetupResultindicates the result of an asynchronous initialization of a persistent store.SetupResult.successindicates that the storage setup succeeded. The associated object for thisenumvalue is the relatedStorageInterfaceinstance.SetupResult.failureindicates that the storage setup failed. The associated object for this value is the relatedCoreStoreErrorenum value.try! dataStack.addStorage( SQLiteStore(), completion: { (result: SetupResult) -> Void in switch result { case .success(let storage): // storage is the related StorageInterface instance case .failure(let error): // error is the CoreStoreError enum value for the failure } } )Declaration
Swift
public typealias SetupResult<StorageInterfaceType> = Swift.Result<StorageInterfaceType, CoreStoreError> where StorageInterfaceType : StorageInterface
View on GitHub
Type Aliases Reference