treedb_save_node()#
The treedb_save_node() function directly saves a given node to the tranger database. The __tag__ (user_flag) attribute is inherited during the save operation.
Prototype
int treedb_save_node(
json_t *tranger,
json_t *node // NOT owned, pure node.
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
A pointer to the |
|
|
A pointer to the node to be saved. This node is not owned by the function. |
Return Value
Returns 0 on success, or a negative error code on failure.
Notes
The __tag__ (user_flag) attribute of the node is inherited during the save operation.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples