Skip to main content

Module traits

Module traits 

Source
Expand description

The NodeDb trait: unified query interface for both Origin and Lite.

Application code writes against this trait once. The runtime determines whether queries execute locally (in-memory engines on Lite) or remotely (pgwire to Origin).

All methods are async — on native this runs on Tokio, on WASM this runs on wasm-bindgen-futures.

Structs§

CollectionPurgedEvent
Event passed to NodeDb::on_collection_purged handlers.

Traits§

NodeDb
Unified database interface for NodeDB.
NodeDbMarker
Marker bound for NodeDb and the futures it returns.

Type Aliases§

CollectionPurgedHandler
Handler registered via NodeDb::on_collection_purged. Fn-ref (not FnMut) so the same handler can fire from multiple threads without interior mutability ceremony at every call site.