tranger2_write_topic_cols()
#
The tranger2_write_topic_cols()
function updates the column definitions of a specified topic in the TimeRanger database.
Prototype
int tranger2_write_topic_cols(
json_t *tranger,
const char *topic_name,
json_t *jn_cols // owned
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
A pointer to the TimeRanger database instance. |
|
|
The name of the topic whose column definitions are being updated. |
|
|
A JSON object containing the new column definitions. The ownership of this object is transferred to |
Return Value
Returns 0
on success, or a negative error code on failure.
Notes
This function modifies the column definitions of an existing topic. Ensure that the topic exists before calling tranger2_write_topic_cols()
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples