[−][src]Function ejdb_sys::bson_merge
pub unsafe extern "C" fn bson_merge(
b1: *const bson,
b2: *const bson,
overwrite: bson_bool_t,
out: *mut bson
) -> c_int
Merge bson b2 into b1 saving result the 'out' object.
b1 & b2 bson must be finished BSONS.
Resulting 'out' bson must be allocated and not finished.
Nested object skipped and usupported.
@param b1 BSON to to be merged in out
@param b2 Second BSON to to be merged in out
@param overwrite if true all b1 fields will be overwriten by corresponding b2 fields
@param out
@return BSON_OK or BSON_ERROR.