Add an API to extend the bson TypeRegistry

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 4.14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Completed
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      Currently "Type registries cannot be modified after instantiation." This leads to a situation where if we want to provide an additional codec for an operation, as in pymongoarrow.api.write, we have to discard the TypeRegistry given by the user. We can add an API to extend the type registry to avoid this constraint.

      Definition of done

      Add an API to modify a TypeRegistry to add codecs. We don't yet have a need to remove codecs.

      Pitfalls

      None

            Assignee:
            Noah Stapp
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: