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

The shell should support ReadPreferences and WriteConcerns similarly to drivers

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

      Looks like the shell doesn't have any support for WriteConcerns, and limited support for ReadPreferences (there's a readPref() method on the cursor). Especially for demos, tutorials, and trainings, it would be nice if the shell supported functionality analogous to what we aim for in the drivers, to wit:

      • setting a default read preference on the collection, database, or connection;
      • setting a default write concern on the collection, database, or connection;
      • overriding a defaulted write concern during insert, update, remove.

      I don't know what I would want the exact semantics to be, but the main thing would be to be able to show people the basic patterns we mean for them to use in real programs.

      Doc changes needed: whatever interfaces people come up with ought to get documented.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            richard.kreuter Richard Kreuter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: