Skip to content

Commit 0a942f3

Browse files
committed
Add configurations to PC
Does return the `NSPersistentStoreDescription`s though. We could alias `NSPersistentStoreDescription` to the `ModelConfiguration`, but we'd need at least a slot for storing the models associated w/ the configuration.
1 parent dc46dbe commit 0a942f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/ManagedModels/Container/NSPersistentContainer+Data.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ extension NSPersistentContainer {
1313
//@MainActor - TBD :-)
1414
@inlinable
1515
public var mainContext : NSManagedObjectContext { viewContext }
16+
17+
@inlinable
18+
public var configurations : [ NSPersistentStoreDescription ] {
19+
persistentStoreDescriptions
20+
}
1621

1722
convenience
1823
public init(for model : NSManagedObjectModel,

0 commit comments

Comments
 (0)