[CXX-1843] Provide a cleaner API for working with pool entries Created: 09/Oct/19  Updated: 07/Feb/24

Status: Backlog
Project: C++ Driver
Component/s: API
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: internal-woes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++ Developer Experience Improvements
Quarter: FY25Q2

 Description   

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?


Generated at Wed Feb 07 22:04:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.