[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 Change-Id: Ic395e599d07ba214ef2964a186c76d9c4b4ff3b3 |
| Comment by Kristofer Brandow (Inactive) [ 05/Dec/18 ] |
|
Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/436205. |