-
Notifications
You must be signed in to change notification settings - Fork 891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GODRIVER-2725 Allow setting Encoder and Decoder options on a Client. #1282
GODRIVER-2725 Allow setting Encoder and Decoder options on a Client. #1282
Conversation
cbd1e7b
to
b424c99
Compare
972e3d2
to
ce7e1bd
Compare
582a826
to
b45ed59
Compare
b45ed59
to
fe1ab18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Preston Vasquez <prestonvasquez@icloud.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice addition
Setting BSONOptions does nothing because MergeCollectionOptions func ignores this attr. Is this a bug? |
@lexxxich yes that is a bug, thank you for the report! I've created GODRIVER-2937 to track that bug and the resolution. |
GODRIVER-2725
Summary
bson.Encoder
andbson.Decoder
configuration options via a newoptions.BSONOptions
client configuration value.BSONOptions
struct more ergonomic.Background & Motivation
GODRIVER-2716 added a new API for configuring a
bson.Encoder
andbson.Decoder
that replaces the configuration applied via thebsoncodec
package. Users need a way to apply those configurations inmongo.Connect
also.