-
Notifications
You must be signed in to change notification settings - Fork 882
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-2696 Use an options pattern that doesn't require merging structs #1570
Open
prestonvasquez
wants to merge
24
commits into
mongodb:master
Choose a base branch
from
prestonvasquez:GODRIVER-2696
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 21 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3276282
Update InsertOneOptions.
qingyang-hu 7b6858d
Update FindOptions.
qingyang-hu 7ac2261
Add a generic merging function.
qingyang-hu 6605798
Merge branch 'master' into godriver2696POC
qingyang-hu 0608e50
Merge InsertOneArgs by the generic function.
qingyang-hu b20327f
Move `Options` to `mongo`.
qingyang-hu dbbc305
WIP
qingyang-hu ff03ed5
Merge branch 'master' into godriver2696POC
qingyang-hu f311172
GODRIVER-2696 Resolve mege conflicts
prestonvasquez 0325efb
GODRIVER-2696 Update Aggregate and BulkWrite
prestonvasquez a71f378
GODRIVER-2696 Update clientoptions
prestonvasquez a50e6ee
GODRIVER-2696 Check for nil args in GetURI
prestonvasquez 3d506f0
GODRIVER-2696 Update collection/createCollection/count
prestonvasquez f53f8d0
GODRIVER-2696 Update up to gridfs
prestonvasquez 0a9fbc6
GODRIVER-2696 Finish converting options
prestonvasquez faebbbc
Merge branch 'master' into GODRIVER-2696
prestonvasquez 760bc3e
GODRIVER-2696 Clean up comments and add mongoutil tests
prestonvasquez 6e87836
Merge branch 'GODRIVER-2696' of github.com:prestonvasquez/mongo-go-dr…
prestonvasquez 937c941
Merge branch 'master' into GODRIVER-2696
prestonvasquez b81dbc0
Merge branch 'master' into GODRIVER-2696
prestonvasquez 1edea67
GODRIVER-2696 Fix typos
prestonvasquez d6497aa
GODRIVER-2696 Resolve merge conflicts
prestonvasquez c94c4e6
GODRIVER-2696 Resolve PR issues
prestonvasquez 49e44f8
GODRIER-2696 Use default revision for skip num
prestonvasquez File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
options.Range()
returns a*RangeOptions
, butSetRangeOptions
expects aRangeOptions
. That creates an awkward mismatch where users will have to immediately dereference pointers to use them.For example, the current code requires:
but we should make the following work:
Either by changing
SetRangeOptions
to take a*RangeOptions
or makingoptions.Range()
return aRangeOptions
.