-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
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.