treedb_topic_size()
#
treedb_topic_size()
returns the number of nodes in the specified topic within the given TreeDB instance.
Prototype
size_t treedb_topic_size(
json_t *tranger,
const char *treedb_name,
const char *topic_name
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to the |
|
|
Name of the TreeDB instance containing the topic. |
|
|
Name of the topic whose node count is to be retrieved. |
Return Value
Returns the number of nodes in the specified topic.
Notes
If the topic does not exist, the function may return 0
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples