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

Add helpers for validating collection and database names

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Requested in https://github.com/mongodb/mongo-python-driver/pull/385

      It will avoid copying/pasting code from this project to make sure that a variable is a valid collection name.

      I think this is a good reason but we should be sure to document that the server's naming restrictions are stricter than our validation rules. So a name that passes pymongo's validation may still fail on the server.

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: