[][src]Function ejdb_sys::bson_merge_recursive

pub unsafe extern "C" fn bson_merge_recursive(
    b1: *const bson,
    b2: *const bson,
    overwrite: bson_bool_t,
    out: *mut bson
) -> c_int

Recursive 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.

NOTE. Arrays with same paths joined.

@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.