[GODRIVER-979] Remove context.Context parameter to mongo.Connect Created: 18/Apr/19  Updated: 06/Dec/23  Resolved: 06/Dec/23

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

Type: New Feature Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Preston Vasquez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Duplicate
is duplicated by GODRIVER-1031 mongo.Connect takes a context for no ... Closed
Related
related to GODRIVER-2683 Deprecate the "mongo.NewClient" and "... Closed
Epic Link: Go Driver 2.0: Driver
Documentation Changes: Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?

For v2, the mongo.Connect function will no longer accept a context.

2. Would you like the user to see examples of the syntax and/or executable code and its output?

Examples in the documentation for v2 will have to avoid using context.Context when creating a connection to the db using the Go Driver.

3. Which versions of the driver/connector does this apply to?
v2


 Description   

Deprecate the context.Context parameter to mongo.Client.Connect and mongo.Connect as it isn't used for anything and it's confusing.



 Comments   
Comment by Githook User [ 06/Dec/23 ]

Author:

{'name': 'Preston Vasquez', 'email': 'prestonvasquez@icloud.com', 'username': 'prestonvasquez'}

Message: GODRIVER-979 Remove context parameter from Connect (#1464)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/5b711e821541d0f024c1d2c1033a08f2dd873714

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