Type Method

setMetadata(_:forPersistentStoreOfType:at:options:)

No overview available.

Declaration

class func setMetadata(_ metadata: [String : Any]?, forPersistentStoreOfType storeType: String, at url: URL, options: [AnyHashable : Any]? = nil) throws

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 metadata(for: NSPersistentStore) -> [String : Any]

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

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.