Initial prototype for Swift 6 mode

This commit is contained in:
John Estropia
2026-07-07 11:18:17 +09:00
parent 38ec439b18
commit 49f65601cd
71 changed files with 998 additions and 684 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ import CoreData
/**
The `StorageInterface` represents the data store managed (or to be managed) by the `DataStack`. When added to the `DataStack`, the `StorageInterface` serves as the interface for the `NSPersistentStore`. This may be a database file, an in-memory store, etc.
*/
public protocol StorageInterface: AnyObject {
public protocol StorageInterface: AnyObject, Sendable {
/**
The string identifier for the `NSPersistentStore`'s `type` property. This is the same string CoreStore will use to create the `NSPersistentStore` from the `NSPersistentStoreCoordinator`'s `addPersistentStoreWithType(...)` method.
@@ -68,7 +68,7 @@ public protocol StorageInterface: AnyObject {
/**
The `LocalStorageOptions` provides settings that tells the `DataStack` how to setup the persistent store for `LocalStorage` implementers.
*/
public struct LocalStorageOptions: OptionSet, ExpressibleByNilLiteral {
public struct LocalStorageOptions: OptionSet, ExpressibleByNilLiteral, Sendable {
/**
Tells the `DataStack` that the store should not be migrated or recreated, and should simply fail on model mismatch