Type Method

metadataForPersistentStoreWithURL:error:

Returns the metadata from the persistent store at the given URL.

Declaration

+ (NSDictionary<NSString *,id> *)metadataForPersistentStoreWithURL:(NSURL *)url error:(NSError * _Nullable *)error;

Parameters

url

The location of the store.

error

If an error occurs, upon return contains an NSError object that describes the problem.

Return Value

The metadata from the persistent store at url. Returns nil if there is an error.

Discussion

Subclasses must override this method.

Discussion

See Also

Managing Metadata

+ setMetadata:forPersistentStoreWithURL:error:

Sets the metadata for the store at a given URL.

metadata

The metadata for the persistent store.

- loadMetadata:

Instructs the persistent store to load its metadata.