PreseedStrategy
public protocol PreseedStrategy
A hook for “seed my store from a bundled file” logic.
-
Perform the bundle-seed.
Declaration
Swift
func apply(to store: PersistenceStore, with config: PreseedConfiguration, spaceType: SyncSpacePersistable.Type) throwsParameters
storeThe
PersistenceStoreto seed.configBundled resource info + target directory + version.
spaceTypeYour
SyncSpacePersistabletype (for reading/writingdbVersion).
View on GitHub
PreseedStrategy Protocol Reference