treedb_get_topic_links()
#
treedb_get_topic_links()
returns a list of column names that are foreign key links in the specified topic of a TreeDB.
Prototype
json_t *treedb_get_topic_links(
json_t *tranger,
const char *treedb_name,
const char *topic_name
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
A reference to the TimeRanger database instance. |
|
|
The name of the TreeDB to query. |
|
|
The name of the topic whose foreign key links are to be retrieved. |
Return Value
A JSON array containing the names of the columns that are foreign key links in the specified topic. The returned JSON object is not owned by the caller.
Notes
The function provides insight into the schema of a topic by identifying its foreign key relationships. The returned list 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