Instance Method

loadMetadata()

Instructs the persistent store to load its metadata.

Declaration

func loadMetadata() throws

Parameters

error

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

Return Value

true if the metadata was loaded correctly, otherwise false.

Discussion

There is no way to return an error if the store is invalid.

Discussion

See Also

Managing Metadata

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

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

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.