Add mongoc_client_get_default_database

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Minor - P4
    • 1.2-beta0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      Akin to PyMongo's MongoClient.get_default_database:

      http://api.mongodb.org/python/current/api/pymongo/mongo_client.html?highlight=get_default_database#pymongo.mongo_client.MongoClient.get_default_database

      Takes a client and returns a mongoc_database_t if the client was created with a database name in the URI, otherwise returns NULL.

      Useful because you can change the database used for operations just by changing a configured URI, without code changes.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: