[CDRIVER-433] bson_append_iter() should have analogue that doesn't require a key Created: 29/Sep/14  Updated: 03/May/17  Resolved: 29/Sep/14

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.0.0
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Tyler Brock Assignee: Unassigned
Resolution: Done Votes: 0
Labels: bson
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All



 Description   

Consider the use case where I want to add some elements to a bson_t then append the entire contents of another bson_t at the top level.

Currently this is only possible via a copy but is common enough where bson_append_iter() or something like it should be available for this purpose.



 Comments   
Comment by Tyler Brock [ 29/Sep/14 ]

bson_concat does the trick:

http://api.mongodb.org/libbson/current/bson_concat.html

Generated at Wed Feb 07 21:09:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.