Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C API function to merge one subtree into another #204

Open
ksbhaskar opened this issue Apr 18, 2018 · 0 comments
Open

C API function to merge one subtree into another #204

ksbhaskar opened this issue Apr 18, 2018 · 0 comments

Comments

@ksbhaskar
Copy link
Member

Final Release Note

Description

Merging (deep copying) a subtree can perform better if implemented within the data management engine.

Draft Release Note

The ydb_merge_s() function provides a way to merge (deep copy) the nodes of one subtree into another. Any nodes with existing values are overwritten.

int ydb_merge_s(ydb_buffer_t *varname_dest,
    int subs_used_dest,
    ydb_buffer_t *subsarray_dest,
    ydb_buffer_t *varname_src,
    int subs_used_src,
    ydb_buffer_t *subsarray_src);

Previously, a merge required a loop in the application code using ydb_node_next_s(), ydb_get_s(), and ydb_set_s().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant