-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: BSON
-
None
-
Fully Compatible
There are bunch of repeated snippets of logic surrounding the bsoncore.Document and bsoncore.Array types that internal or lower-level users like the Go team themselves use often.
A lot of examples stem from modifications we wish to make to a complete bsoncore.Document. For example, we may want to add in another field, or for the case of bsoncore.Array, we may want to append one or more elements. These often require slicing off the byte(s?) marking the end of a BSON document, appending the bytes for the new values, and then completing the document again. This not only leaks internal details of BSON that should probably be hidden at this level, but it duplicates logic.
- is related to
-
GODRIVER-613 Add bsoncore Builder types
- Closed