-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: BSON
-
None
-
Not Needed
-
The primitive.CompareTimestamp function is not an idiomatic API. Replace it with Timestamp methods Before, After, and Compare (inspired by Go's time.Time API). Deprecate primitive.CompareTimestamp and suggest using the new API.
Definition of done:
- Deprecate primitive.CompareTimestamp.
- Add Timestamp methods Before, After, and Compare
- is depended on by
-
GODRIVER-2617 Remove or un-export all currently deprecated code in Go Driver 2.0
- Closed
- is duplicated by
-
GODRIVER-2381 Extending Comparison API for `primitive.Timestamp`
- Closed
- related to
-
GODRIVER-2606 Deprecate unused functionality in preparation to remove it in Go Driver 2.0
- Closed