Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1843

Provide a cleaner API for working with pool entries

    XMLWordPrintable

Details

    • Improvement
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • API

    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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: