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

Database::has_collection has ambiguous error modes

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.2
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Platforms 13 (04/22/16)

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            samantha.ritter Samantha Ritter
            Reporter:
            pavel.odintsov Pavel Odintsov
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: