treedb_close_db()

treedb_close_db()#

Closes the TreeDB instance identified by treedb_name in the given json_t * tranger. This function ensures that all resources associated with the TreeDB instance are properly released.

Prototype

int treedb_close_db(
    json_t *tranger,
    const char *treedb_name
);

Parameters

Key

Type

Description

tranger

json_t *

A pointer to the json_t * object representing the TimeRanger instance.

treedb_name

const char *

The name of the TreeDB instance to be closed.


Return Value

Returns 0 on success, or a negative error code if the operation fails.

Notes

Ensure that treedb_open_db() was previously called before attempting to close the TreeDB instance.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples