Skip to content

Commit c8c816e

Browse files
committed
Add ModelStorage.delete(_:for:)
1 parent 30c4952 commit c8c816e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/CoreModel/Store.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public protocol ModelStorage: AnyObject, Sendable {
2929

3030
/// Delete the specified managed object.
3131
func delete(_ entity: EntityName, for id: ObjectID) async throws
32+
33+
/// Delete the specified managed objects.
34+
func delete(_ entity: EntityName, for ids: [ObjectID]) async throws
3235
}
3336

3437
public extension ModelStorage {

0 commit comments

Comments
 (0)