Add helpers for validating collection and database names

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: