-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Currently mongo.Connect accepts a variadic argument for the ClientOptions value(s). However, there are no known use cases where multiple ClientOptions need to be passed in and very few where zero ClientOptions need to be passed. As a result, the options.MergeClientOptions function is almost never used, despite requiring maintenance and testing. Remove the ability to pass zero or many ClientOptions structs and remove options.MergeClientOptions.
Definition of done:
- Update mongo.Connect to accept a single options.ClientOptions argument instead of any number of arguments.
- Update the mongo.Connect docs to describe default behavior when a zero-value options.ClientOptions struct is passed (existing default behavior is the same, just different syntax). Note that this may not require any changes.
- Remove options.MergeClientOptions.
- depends on
-
GODRIVER-2696 Use an options pattern that doesn't require merging structs
- Closed