[SERVER-5668] Add appendBinData method to BSONArrayBuilder Created: 20/Apr/12  Updated: 11/Jul/16  Resolved: 16/Jul/14

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: 2.7.4

Type: Improvement Priority: Trivial - P5
Reporter: Kevin Matulef Assignee: Tyler Brock
Resolution: Done Votes: 1
Labels: bson, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-281 Merge upstream changes for SERVER-5668 Closed
Related
is related to SERVER-14482 Add ability to append RegEx using BSO... Closed
Participants:

 Description   

Currently it seems like there's no easy way to construct a BSON array with BinData elements. This would be trivial to add by adding an "appendBinData" method to BSONArrayBuilder, just like the one in BSONObjBuilder.



 Comments   
Comment by Githook User [ 16/Jul/14 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: CXX-281 Merge upstream changes for SERVER-5668

SERVER-14482 Add add missing appendX methods to BSONArrayBuilder

Conflicts:
src/mongo/bson/bsonobjbuilder.h
src/mongo/bson/mutable/document.cpp
src/mongo/dbtests/jsobjtests.cpp
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/bf98e8af20dc456e9576d2bae9541464e0021f3e

Comment by Tyler Brock [ 16/Jul/14 ]

See related commits in SERVER-14482

Comment by Pieter Willem Jordaan [ 23/Jan/13 ]

This could be very convient

Generated at Thu Feb 08 03:09:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.