ZephyrDB
Embedded database for Zephyr RTOS: KV, time-series, and document models
Loading...
Searching...
No Matches
zdb_doc_event_t Struct Reference

Payload delivered to document event listeners. More...

#include <zephyrdb.h>

Public Attributes

zdb_doc_event_type_t type
char collection_name [CONFIG_ZDB_MAX_KEY_LEN+1]
char document_id [CONFIG_ZDB_MAX_KEY_LEN+1]
uint64_t timestamp_ms
size_t field_count
size_t serialized_bytes
zdb_status_t status

Detailed Description

Payload delivered to document event listeners.

Member Data Documentation

◆ collection_name

char zdb_doc_event_t::collection_name[CONFIG_ZDB_MAX_KEY_LEN+1]

Collection the operation targeted.

◆ document_id

char zdb_doc_event_t::document_id[CONFIG_ZDB_MAX_KEY_LEN+1]

Document the operation targeted.

◆ field_count

size_t zdb_doc_event_t::field_count

Field count of the document (save events).

◆ serialized_bytes

size_t zdb_doc_event_t::serialized_bytes

Serialized size on disk (save events).

◆ status

zdb_status_t zdb_doc_event_t::status

Result of the operation.

◆ timestamp_ms

uint64_t zdb_doc_event_t::timestamp_ms

Uptime when the event fired (k_uptime_get()).

◆ type

zdb_doc_event_type_t zdb_doc_event_t::type

Operation kind.


The documentation for this struct was generated from the following file: