Summary: - Sources: update Migrations, Models, Protocols (+2 more) - Tests: update tests for AnyStorageKeyTests.swift, MigrationAdditionalTests.swift, MigrationIntegrationTests.swift (+3 more) - Docs: update docs for Migration, Migration_Refactor_Plan_Clean, Proposal (+1 more) Stats: - 31 files changed, 2820 insertions(+), 80 deletions(-)
21 lines
536 B
Swift
21 lines
536 B
Swift
import Foundation
|
|
|
|
public protocol StorageKey: Sendable, CustomStringConvertible {
|
|
associatedtype Value: Codable & Sendable
|
|
|
|
var name: String { get }
|
|
var domain: StorageDomain { get }
|
|
var security: SecurityPolicy { get }
|
|
var serializer: Serializer<Value> { get }
|
|
var owner: String { get }
|
|
|
|
var availability: PlatformAvailability { get }
|
|
var syncPolicy: SyncPolicy { get }
|
|
|
|
var migration: AnyStorageMigration? { get }
|
|
}
|
|
|
|
extension StorageKey {
|
|
public var migration: AnyStorageMigration? { nil }
|
|
}
|