[GODRIVER-2979] Rename "SingleResult.DecodeBytes" to "SingleResult.Raw" Created: 08/Sep/23  Updated: 06/Dec/23  Resolved: 09/Oct/23

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

Type: Improvement Priority: Unknown
Reporter: Matt Dale Assignee: Preston Vasquez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Go Driver 2.0: Driver
Quarter: FY24Q3
Backwards Compatibility: Major Change
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
I
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

The method SingleResult.DecodeBytes is a misnomer because it does not decode the result, but returns the raw bytes. It would be better to rename it SingleResult.Raw instead.

Definition of done:

  • Create a new method SingleResult.Raw that has the same code as SingleResult.DecodeBytes.
  • Deprecate SingleResult.DecodeBytes in Go Driver v1 and update it to call SingleResult.Raw.


 Comments   
Comment by Githook User [ 09/Oct/23 ]

Author:

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

Message: GODRIVER-2979 Rename SingleResult DecodeBytes to Raw (#1414)

Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/39d041164b524c1fecb54f77a6e210c6854bfa64

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