|
|
|
@ -149,6 +149,11 @@ extension StoredCollection: SomeSyncedCollection where T : SyncedStorable { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Proceeds to delete all instance of the collection, properly cleaning up dependencies and sending API calls |
|
|
|
|
|
|
|
public func deleteAll() throws { |
|
|
|
|
|
|
|
self.delete(contentOfs: self.items) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Deletes all items of the sequence by id and sets the collection as changed to trigger a write |
|
|
|
/// Deletes all items of the sequence by id and sets the collection as changed to trigger a write |
|
|
|
public func delete(contentOfs sequence: any Sequence<T>) { |
|
|
|
public func delete(contentOfs sequence: any Sequence<T>) { |
|
|
|
|
|
|
|
|
|
|
|
|