-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: API
-
Not Needed
-
Currently, you need to use the * or -> operators on a pool::entry to use the underlying client. So it is a little awkward to use when doing client operations (e.g. obtaining a database), e.g. here:
auto coll = (*client)["test"][collection_names[static_cast<std::size_t>(j)]];
Perhaps instead, the pool::entry could also have an [] operator overload for obtaining the database?