Type Method

setMetadata(_:forPersistentStoreAt:)

Sets the metadata for the store at a given URL.

Declaration

class func setMetadata(_ metadata: [String : Any]?, forPersistentStoreAt url: URL) throws

Parameters

metadata

The metadata for the store at url.

url

The location of the store.

error

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

Return Value

true if the metadata was written correctly, otherwise false.

Discussion

Subclasses must override this method to set metadata appropriately.

Discussion

See Also

Managing Metadata

class func metadataForPersistentStore(with: URL) -> [String : Any]

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

var metadata: [String : Any]!

The metadata for the persistent store.

func loadMetadata()

Instructs the persistent store to load its metadata.