tranger2_open_list()
#
tranger2_open_list()
opens a list of records in memory, optionally enabling real-time updates via memory or disk.
Prototype
json_t *tranger2_open_list(
json_t *tranger,
const char *topic_name,
json_t *match_cond, // owned
json_t *extra, // owned, will be added to the returned rt
const char *rt_id,
BOOL rt_by_disk,
const char *creator
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The TimeRanger database instance. |
|
|
The name of the topic to open. |
|
|
A JSON object specifying filtering conditions for records. Owned by the function. |
|
|
Additional user data to be added to the returned real-time object. Owned by the function. |
|
|
The real-time list identifier. |
|
|
If |
|
|
The identifier of the entity creating the list. |
Return Value
Returns a JSON object representing the real-time list (rt_mem
or rt_disk
) or a static list if real-time is disabled. The caller does not own the returned object.
Notes
Loading all records may introduce delays in application startup. Use filtering conditions in match_cond
to optimize performance.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples