diff --git a/C/Cpp_include/c4Collection.hh b/C/Cpp_include/c4Collection.hh index d08a075eb..9d388d209 100644 --- a/C/Cpp_include/c4Collection.hh +++ b/C/Cpp_include/c4Collection.hh @@ -55,6 +55,7 @@ struct C4Collection virtual uint64_t getDocumentCount() const = 0; virtual C4SequenceNumber getLastSequence() const = 0; + virtual uint64_t getPurgeCount() const = 0; C4ExtraInfo& extraInfo() noexcept { return _extraInfo; } diff --git a/LiteCore/Database/CollectionImpl.hh b/LiteCore/Database/CollectionImpl.hh index 81c62dd13..9323e9570 100644 --- a/LiteCore/Database/CollectionImpl.hh +++ b/LiteCore/Database/CollectionImpl.hh @@ -89,6 +89,7 @@ namespace litecore { uint64_t getDocumentCount() const override { return keyStore().recordCount(); } C4SequenceNumber getLastSequence() const override { return keyStore().lastSequence(); } + uint64_t getPurgeCount() const override { return keyStore().purgeCount(); } DatabaseImpl* dbImpl() { return asInternal(getDatabase()); }