-
Type: New Feature
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
Akin to PyMongo's 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.
- is related to
-
PYTHON-461 API to create a database.Database instance directly from a URI.
- Closed