tranger2_write_topic_cols()

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

tranger

json_t *

A pointer to the TimeRanger database instance.

topic_name

const char *

The name of the topic whose column definitions are being updated.

jn_cols

json_t *

A JSON object containing the new column definitions. The ownership of this object is transferred to tranger2_write_topic_cols().


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