NSPersistentStore
The abstract base class for all Core Data persistent stores.
Declaration
class NSPersistentStoreOverview
Core Data provides four store types—SQLite, Binary, XML, and In-Memory (the XML store is not available on iOS); these are described in Persistent Store Features. Core Data also provides subclasses of NSPersistentStore that you can use to define your own store types: NSAtomicStore and NSIncrementalStore. The Binary and XML stores are examples of atomic stores that inherit functionality from NSAtomicStore.
Subclassing Notes
You should not subclass NSPersistentStore directly. Core Data only supports subclassing of NSAtomicStore and NSIncrementalStore.
The designated initializer is init(persistentStoreCoordinator:configurationName:at:options:). When you implement the initializer, you must ensure you load metadata during initialization and set it using metadata.
You must override these methods:
Topics
Creating a Persistent Store
Getting Store Configuration
configurationNameoptionspersistentStoreCoordinatortypeNSPersistentStore.StoreTypePersistent Store Types