[GODRIVER-201] Consolidate Foo + FooContext methods to just Foo that takes a context object Created: 21/Jan/18  Updated: 28/Oct/23  Resolved: 22/Jan/18

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 0.0.1

Type: Task Priority: Major - P3
Reporter: David Golden Assignee: David Golden
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: GODRIVER Alpha UX

 Description   

Per feedback from Eliot, we will eliminate the "FooContext" style methods (e.g. "InsertOneContext") and just have the standard CRUD names that all take a leading context object (which can be nil for us to default to context.Background).

result, err := coll.InsertOne(ctx, doc)



 Comments   
Comment by Githook User [ 22/Jan/18 ]

Author:

{'name': 'David Golden', 'email': 'xdg@xdg.me', 'username': 'xdg'}

Message: GODRIVER-201 Consolidate Foo and FooContext methods to just Foo

Previously, we had methods like InsertOne(...) and
InsertOneContext(ctx, ...). This commit consolidates to a single
method, which takes a context. E.g. InsertOne(ctx, ...).

Change-Id: I9234039d8a4866fca6a4a8ca66d4a3a1674c36dd
Branch: master
https://github.com/10gen/mongo-go-driver/commit/5e423c27503fd6988e1ade1fda9cfe6bf84ecc40

Generated at Thu Feb 08 08:33:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.