metadataForPersistentStore(with:)
Returns a dictionary that contains the metadata stored in the persistent store at the specified location.
Declaration
class func metadataForPersistentStore(with url: URL) throws -> [AnyHashable : Any]Parameters
- url:
An URL object that specifies the location of a persistent store.
Return Value
A dictionary containing the metadata for the persistent store at url. If no store is found, or there is a problem accessing its contents, returns nil. The keys guaranteed to be in this dictionary are NSStoreTypeKey and NSStoreUUIDKey.
Discussion
This method allows you to access the metadata in a persistent store without initializing a Core Data stack.
See Also
Related Documentation
Deprecated type methods
elementsDerived(fromExternalRecordAt:)metadataForPersistentStore(ofType:at:)metadataForPersistentStore(ofType:at:options:)registerStoreClass(_:forStoreType:)removeUbiquitousContentAndPersistentStore(at:options:)setMetadata(_:forPersistentStoreOfType:at:)setMetadata(_:forPersistentStoreOfType:at:options:)