trq_load_all()
#
trq_load_all()
loads all messages from the queue within the specified rowid range, optionally filtering by key.
Prototype
int trq_load_all(
tr_queue trq,
const char *key,
int64_t from_rowid,
int64_t to_rowid
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The queue instance from which messages will be loaded. |
|
|
An optional key to filter messages; if NULL, all messages are loaded. |
|
|
The starting rowid for loading messages. |
|
|
The ending rowid for loading messages. |
Return Value
Returns an iterator over the loaded messages or an error code if the operation fails.
Notes
Use trq_load_all()
to retrieve messages efficiently within a specific rowid range.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples