Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-428

Add new IsDatabaseNameValid and IsCollectionNameValid methods

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.4.1
    • Affects Version/s: 1.4
    • Component/s: None
    • None

      Some types of applications (like management UIs) have a need to test whether a given database or collection name is valid before actually trying to create a database or collection object. These methods allow testing a name without attempting to create a database or collection object.

      IsDatabaseNameValid will be an instance method of MongoServer in case at some point in the future the validity of a database name is a function of the operating system the server is running on or the version of the server.

      IsCollectionNameValid will be an instance method of MongoDatabase for similar reasons.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: