storeIdentifier(forConfigurationNamed:)
Returns the on-disk store identifier for the given configuration name.
Declaration
func storeIdentifier(forConfigurationNamed name: String) -> String?Parameters
- name:
The
namevalue from theModelConfigurationused to create the store.
Return Value
The store identifier string, or nil if no store is associated with name or if invalidate() has been called on this container.
Discussion
Store identifiers are stable strings derived from the backing file path or the store’s own initialization — they are not the configuration name. Use this function when you have the name you passed to ModelConfiguration and need the corresponding identifier to filter a HistoryDescriptor, interpret PersistentIdentifier.storeIdentifier, or route to a specific store.
If no ModelConfiguration was given an explicit name at initialization time, the default name is "default".