Skip to content

Commit

Permalink
Add configurations to PC
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
helje5 committed Sep 30, 2023
1 parent dc46dbe commit 0a942f3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ extension NSPersistentContainer {
//@MainActor - TBD :-)
@inlinable
public var mainContext : NSManagedObjectContext { viewContext }

@inlinable
public var configurations : [ NSPersistentStoreDescription ] {
persistentStoreDescriptions
}

convenience
public init(for model : NSManagedObjectModel,
Expand Down

0 comments on commit 0a942f3

Please sign in to comment.