treedb_get_id_index()

treedb_get_id_index()#

treedb_get_id_index() retrieves the index of node IDs for a given topic in a TreeDB instance.

Prototype

json_t *treedb_get_id_index(
    json_t      *tranger,
    const char  *treedb_name,
    const char  *topic_name
);

Parameters

Key

Type

Description

tranger

json_t *

Pointer to the tranger instance managing the TreeDB.

treedb_name

const char *

Name of the TreeDB instance.

topic_name

const char *

Name of the topic whose ID index is to be retrieved.


Return Value

A JSON object containing the ID index of the specified topic. WARNING: The returned object is NOT owned by the caller.

Notes

The returned JSON object should not be modified or freed by the caller.

Prototype

// Not applicable in JS

Prototype

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