1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Core traits and types for the Rhei HTAP engine.
//!
//! `rhei-core` is the **foundation crate** of the Rhei workspace. Every other
//! crate depends on it for shared abstractions. It deliberately has no
//! dependencies on concrete database drivers so that it can be compiled
//! quickly and used as a pure trait/type boundary.
//!
//! # Position in the HTAP pipeline
//!
//! ```text
//! Client
//! |
//! v
//! HtapEngine (crates/rhei)
//! |-- QueryRouter ──────────────────── routes SQL to OLTP or OLAP
//! |-- OltpEngine ──────────────────── transactional reads/writes
//! |-- OlapEngine ──────────────────── analytical queries
//! |-- CdcConsumer ──────────────────── polls change-data-capture events
//! +-- SyncEngine ──────────────────── applies CDC events to OLAP
//! ```
//!
//! # Key types
//!
//! | Item | Description |
//! |------|-------------|
//! | [`OltpEngine`] | Async trait for transactional SQL execution |
//! | [`OlapEngine`] | Async trait for analytical SQL + Arrow bulk-load |
//! | [`CdcConsumer`] | Async trait for polling CDC events |
//! | [`SyncEngine`] | Async trait for the CDC→OLAP sync loop |
//! | [`QueryRouter`] | Sync trait that classifies SQL to [`QueryTarget`] |
//! | [`SchemaRegistry`] | Thread-safe registry of [`TableSchema`]s |
//! | [`CdcEvent`] | A single change-data-capture event |
//! | [`SyncMode`] | Destructive mirror vs. SCD Type 2 temporal history |
//! | [`RecordBatchBoxStream`] | Streaming Arrow record-batch type |
pub use CoreError;
pub use ;
pub use CdcConsumer;
pub use ;
pub use OltpEngine;
pub use QueryRouter;
pub use SyncEngine;
pub use *;