Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-964

make option type construction consistent with the options package (e.g. readpref, readconcern, writeconcern)

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • None

      Revised:

      The mongo/options package uses chained-setters for constructing options. But types referenced by mongo/options, such as WriteConcern, ReadConcern, etc., are constructed with functional options style. Mixing styles confuses users and could be revised/replaced for consistency.

      Additionally, some types are defined within mongo/options (such as Credential, Collation, etc.) but others have their own package (e.g. readpref.ReadPref, etc.). There is no obvious guide for what to expect to find where.

      Original:

      specifying writeconcern is difficult and confusing, and doesn't conform with the idiom established for options in the driver. It should be specifiable, perhaps with its own options type.

            Assignee:
            Unassigned Unassigned
            Reporter:
            sam.kleinman Sam Kleinman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: