Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22551

Make db.dropDatabase() shell helper take an argument

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Shell
    • Labels:
    • Case:

      Description

      Dropping a database is a big deal. The current shell command db.dropDatabase() defaults to the current selected database and drops the database without confirmation.

      I would suggest we add an argument to the command that explicitly names the database so that accidental drops don't occur because the wrong database was "used" in a previous command.

      The shell should also ask for confirmation before performing this action.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-stm Backlog - Server Tooling and Methods (STM)
              Reporter:
              joe.drumgoole Joe Drumgoole
              Participants:
              Votes:
              3 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated: