[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: |