You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an abstraction that can help the process of migrating from different PrefsSchema versions, similar to how SwiftData.
Considerations
This may involve adding a versioning system to the PrefsSchema protocol, or to a new VersionedPrefsSchema derivative protocol.
Most likely, SemVer may be utilized but the version semantics could be abstracted such that SemVer is provided as the default implementation but custom implementations could be used.
Providing a comparable version identifier to a prefs schema would allow some degree of automation:
detecting prefs schema versions based on storage content by way of a version key/value pair
allowing automated schema storage migration to newer schema version(s)
SwiftData employs a schema migration model. Its design may provide a springboard for PerfsKit's implementation.
Action Items
Add abstraction type(s)
Add unit tests
Update REAMDE with example usage
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Proposal
Add an abstraction that can help the process of migrating from different
PrefsSchema
versions, similar to how SwiftData.Considerations
This may involve adding a versioning system to the
PrefsSchema
protocol, or to a newVersionedPrefsSchema
derivative protocol.Most likely, SemVer may be utilized but the version semantics could be abstracted such that SemVer is provided as the default implementation but custom implementations could be used.
Providing a comparable version identifier to a prefs schema would allow some degree of automation:
SwiftData employs a schema migration model. Its design may provide a springboard for PerfsKit's implementation.
Action Items
The text was updated successfully, but these errors were encountered: