Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-802

Add get_database and get_collection methods.

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      PyMongo 3.0 will make MongoClient, Database, and Collection immutable. New methods will be added to create Database and Collection instances with specific BSON codec options, read preference, and write concern:

      pymongo.mongo_client.MongoClient.get_database
      pymongo.database.Database.get_collection
      pymongo.collection.Collection.with_options

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: