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

Support strict checking of whether a collection exists upon attribute-style access

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: None
    • # Replies:
      1
    • Last comment by Customer:
      false

      Description

      Accessing a collection as db.mycollection.find() can silently fail if there is a typo in the collection name, e.g. db.mycollections.find().

      Allow pymongo to be configured to raise an exception if the collection doesn't exist?

        Attachments

          Activity

            People

            • Assignee:
              behackett Bernie Hackett
              Reporter:
              wodow Chris Wood
              Participants:
              Last commenter:
              Rathi Gnanasekaran
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                5 years, 15 weeks, 3 days ago
                Date of 1st Reply: