[GODRIVER-673] ValueReader should support reading the bytes of a top level document Created: 04/Dec/18  Updated: 28/Oct/23  Resolved: 06/Dec/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: 0.0.18
Fix Version/s: 0.1.0

Type: Improvement Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Kristofer Brandow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The bsonrw.ValueReader implementation for BSON doesn't support calling ReadValueBytes on a top level document. This makes it impossible to support bson.Marshaler from the top level. Add support for retrieving the bytes of the entire document from ReadValueBytes.



 Comments   
Comment by Githook User [ 05/Dec/18 ]

Author:

{'name': 'Kris Brandow', 'email': 'kris@mongodb.com', 'username': 'skriptble'}

Message: Add support for Top Level Document reads

Adds support for reading the bytes of a top level document from a
bsonrw.ValueReader.

GODRIVER-673

Change-Id: Ic395e599d07ba214ef2964a186c76d9c4b4ff3b3
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/814b9f88583fa398e6d2a8098835ba60e21238e4

Comment by Kristofer Brandow (Inactive) [ 05/Dec/18 ]

Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/436205.

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