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

Improve BSON RawValue type conversion APIs

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: None
    • Component/s: BSON
    • None

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.dale@mongodb.com Matt Dale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: