Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-979

Remove context.Context parameter to mongo.Connect

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.0
    • Affects Version/s: None
    • Component/s: CRUD
    • None
    • Needed
    • Hide

      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

      Show
      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

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

            Assignee:
            preston.vasquez@mongodb.com Preston Vasquez
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: