Support typed errors. Misc formatting

This commit is contained in:
John Estropia
2024-09-10 11:14:39 +09:00
parent c9e091a6a4
commit 5dcf29011a
74 changed files with 3987 additions and 1441 deletions

View File

@@ -53,7 +53,14 @@ public final class InferredSchemaMappingProvider: Hashable, SchemaMappingProvide
// MARK: SchemaMappingProvider
public func cs_createMappingModel(from sourceSchema: DynamicSchema, to destinationSchema: DynamicSchema, storage: LocalStorage) throws -> (mappingModel: NSMappingModel, migrationType: MigrationType) {
public func cs_createMappingModel(
from sourceSchema: DynamicSchema,
to destinationSchema: DynamicSchema,
storage: LocalStorage
) throws(CoreStoreError) -> (
mappingModel: NSMappingModel,
migrationType: MigrationType
) {
let sourceModel = sourceSchema.rawModel()
let destinationModel = destinationSchema.rawModel()