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

Database::has_collection has ambiguous error modes

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.2
    • Affects Version/s: None
    • Component/s: None
    • None

      Hello!

      I'm writing application which uses Mongo. But actually sometimes mongo could not run in time due to Linux init manager issues.

      So I need some way to check connection to Mongodb. I deeply reviewed API documents about C++ 11 driver but could not find any way to check connection without real requests.

      Could you add something like this?

      Also function db.has_collection() haven't any way to tell about errors. And case "no connection to mongo" and "we haven't this database" handled in same way. That's not perfect

            Assignee:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Reporter:
            pavel.odintsov Pavel Odintsov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: