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

Deprecate the "bsonoptions" package

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.12.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Currently the bsonoptions package is used exclusively to define configuration options for types and functions in the bsoncodec package. Those options structs are almost exact duplicates of most of the *Codec structs.

      Note that deprecating those options depends on being able to override the default behavior via the bson.Encoder and bson.Decoder types, which is implemented in GODRIVER-2716.

      Definition of done:

      • Deprecate all exported symbols in the bsonoptions package. Recommend using the bson.Encoder and bson.Decoder configurations instead.

            Assignee:
            matt.dale@mongodb.com Matt Dale
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: