Instance Method

metadata(for:)

Returns a dictionary that contains the metadata currently stored and that will be stored in a given persistent store.

Declaration

func metadata(for store: NSPersistentStore) -> [String : Any]

Parameters

store

A persistent store.

Return Value

A dictionary that contains the metadata currently stored or to-be-stored in store.

See Also

Working with Metadata

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

Returns a dictionary that contains the metadata stored in the persistent store at the specified location.

Deprecated
func setMetadata([String : Any]?, for: NSPersistentStore)

Sets the metadata stored in the persistent store during the next save operation executed on it to metadata.

Store Metadata

Use™ metadata dictionary keys to identify the store type and UUID.