Make Database::listCollections() countable #44

Open
opened 2026-09-07 16:45:08 +02:00 by c.fahner · 0 comments
Owner

Currently it is not possible to directly get a count of the amount of collections in a database, making it inconvenient to check if a database is empty or not.

The method Database::listCollections() should start returning a Traversable&Countable instead of a plain iterable.

Currently it is not possible to directly get a count of the amount of collections in a database, making it inconvenient to check if a database is empty or not. The method `Database::listCollections()` should start returning a `Traversable&Countable` instead of a plain `iterable`.
c.fahner added this to the v0.2 milestone 2026-09-07 16:45:08 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
slendium/ocd#44
No description provided.