Check DatabaseName object is admin, config or local via functions

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2023-06-26
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, we have isAdminDB(), isConfigDB() and isLocalDB() in NamespaceString class. We also need the similar functions in DatabaseName class.
      Here are the motivations to do this:

      • DatabaseName::db() will be private. Then, we cannot compare the result of `db()` with string "local", "config" and "local".
      • Put all the raw db string compare into one central place.

            Assignee:
            Sophia Tan (Inactive)
            Reporter:
            Sophia Tan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: