Skip to content

Commit

Permalink
Added C4Collection::getPurgeCount() [API]
Browse files Browse the repository at this point in the history
for EdgeServer, as part of creating Etags
  • Loading branch information
snej committed Dec 20, 2024
1 parent 1626085 commit 56edb04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions C/Cpp_include/c4Collection.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
1 change: 1 addition & 0 deletions LiteCore/Database/CollectionImpl.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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()); }

Expand Down

0 comments on commit 56edb04

Please sign in to comment.