Make Database::listCollections() countable #44

Closed
opened 2026-09-07 16:45:08 +02:00 by c.fahner · 1 comment
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
Author
Owner

Should be changed to return list<non-empty-string> instead.

Should be changed to return `list<non-empty-string>` instead.
c.fahner added spent time 2026-09-11 16:41:06 +02:00
5 minutes
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 5 minutes
c.fahner
5 minutes
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.