Store Metadata

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

Topics

Constants

let NSStoreTypeKey: String

The key in the metadata dictionary to identify the store type.

let NSStoreUUIDKey: String

The key in the metadata dictionary to identify the store UUID.

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.