[GODRIVER-2863] Improve BSON RawValue type conversion APIs Created: 30/May/23  Updated: 08/Jan/24

Status: Backlog
Project: Go Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 2.0.0

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

Issue Links:
Related
is related to GODRIVER-1639 Add a "bson.RawArray" type to improve... Backlog
is related to GODRIVER-2663 Deprecate "bson.Raw" APIs to support ... Closed
Epic Link: Go Driver 2.0 BSON
Quarter: FY24Q3

 Description   

Definition of done:

  • Update RawValue.Binary(OK) to return bson.Binary
  • Update RawValue.DateTime(OK) to return bson.DateTime
  • Update RawValue.Regex(OK) to return bson.Regex
  • Update RawValue.DBPointer(OK) to return bson.DBPointer
  • Update RawValue.JavaScript(OK) to return bson.JavaScript
  • Update RawValue.Symbol(OK) to return bson.Symbol
  • Update RawValue.CodeWithScope(OK) to return bson.CodeWithScope
  • Update RawValue.Timestamp(OK) to return bson.Timestamp
  • Consider deprecating or removing RawValue.Time. Suggest using RawValue.DateTime().Time() instead.
    • That's not quite as convenient for the OK use case, so maybe keep it?
    • Should we replace it with AsTime(OK) instead?
  • Consider deprecating the BSON library types and methods that correspond to deprecated BSON types
    • Undefined, DBPointer, Symbol, CodeWithScope

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