tranger2_delete_record()#
The tranger2_delete_record() function deletes a record from the specified topic in the TimeRanger database.
Prototype
int tranger2_delete_record(
json_t *tranger,
const char *topic_name,
const char *key
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
A pointer to the TimeRanger database instance. |
|
|
The name of the topic from which the record will be deleted. |
|
|
The key identifying the record to be deleted. |
Return Value
Returns 0 on success, or a negative value on failure.
Notes
If the specified key does not exist in the topic, tranger2_delete_record() will fail.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples