treedb_get_topic_hooks()

treedb_get_topic_hooks()#

Retrieves a list of column names that are hooks in the specified topic of the treedb_name tree database.

Prototype

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

Parameters

Key

Type

Description

tranger

json_t *

A reference to the tranger database instance.

treedb_name

const char *

The name of the tree database containing the topic.

topic_name

const char *

The name of the topic whose hook columns are to be retrieved.


Return Value

A JSON array containing the names of the columns that are hooks in the specified topic. The returned JSON object is NOT owned by the caller.

Notes

Hooks define relationships between nodes in the tree database. Use treedb_get_topic_links() to retrieve foreign key links instead.

Prototype

// Not applicable in JS

Prototype

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