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

Add EncodeContext/DecodeContext options

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • BSON
    • None

    Description

      If a user wants to take advantage of EncodeContext/DecodeContext settings like minSize, they have to manually call functions like MarshalWithContext. This means they can't use these options when calling high level functions like InsertOne because those functions always use MarshalAppendWithRegistry and don't allow custom Encode/Decode contexts.

      We should add EncodeContext and DecodeContext options to configure Client, Database, and Collection. Like Registry, each level should inherit this option from the previous level if it is not specified.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: