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

Add new IsDatabaseNameValid and IsCollectionNameValid methods

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.4.1
    • 1.4
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: