Type Method

metadataForPersistentStore(with:)

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

Declaration

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

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

class func setMetadata([String : Any]?, forPersistentStoreAt: URL)

Sets the metadata for the store at a given URL.

var metadata: [String : Any]!

The metadata for the persistent store.

func loadMetadata()

Instructs the persistent store to load its metadata.