From 4765bc4e89e2b8b05f839dc85ef7fbb0d8997d7d Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 10 Mar 2025 15:26:21 +0100 Subject: [PATCH] Adds storeId method on StoredCollection --- LeStorage/StoredCollection.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LeStorage/StoredCollection.swift b/LeStorage/StoredCollection.swift index dab0f5a..9a3e045 100644 --- a/LeStorage/StoredCollection.swift +++ b/LeStorage/StoredCollection.swift @@ -100,6 +100,10 @@ public class StoredCollection: RandomAccessCollection, SomeCollecti return T.resourceName() } + public var storeId: String? { + self._store.identifier?.value + } + // MARK: - Loading /// Migrates if necessary and asynchronously decodes the json file