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

Cursor for cooperative scans (currently opened via zdb_ts_cursor_open()). More...

#include <zephyrdb.h>

Public Attributes

zdb_model_t model
zdb_backend_t backend
uint32_t flags
uint32_t iter_count
uint64_t position
zdb_bytes_t current
zdb_predicate_fn predicate
void * predicate_ctx
void * impl

Detailed Description

Cursor for cooperative scans (currently opened via zdb_ts_cursor_open()).

Treat the members as internal; drive the cursor with zdb_cursor_next(), zdb_cursor_reset(), and zdb_cursor_close().

Member Data Documentation

◆ backend

zdb_backend_t zdb_cursor::backend

Backend the scan reads from.

◆ current

zdb_bytes_t zdb_cursor::current

Most recently yielded record.

◆ flags

uint32_t zdb_cursor::flags

Internal flags.

◆ impl

void* zdb_cursor::impl

Backend-specific state (internal).

◆ iter_count

uint32_t zdb_cursor::iter_count

Records yielded so far.

◆ model

zdb_model_t zdb_cursor::model

Data model being scanned.

◆ position

uint64_t zdb_cursor::position

Internal scan position.

◆ predicate

zdb_predicate_fn zdb_cursor::predicate

Optional filter; NULL yields everything.

◆ predicate_ctx

void* zdb_cursor::predicate_ctx

Opaque pointer passed to predicate.


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