Skip to main content

zero_client/client/
mod.rs

1//! The client engine (`packages/zero-client/src/client`): the connection,
2//! the replica and its pending mutations, and the query and mutation
3//! bookkeeping, on memory storage.
4//!
5//! Everything runs synchronously on one thread, driven by a [`Scheduler`]
6//! and the socket events of a [`SocketFactory`]; see `event_loop`.
7
8mod connection_manager;
9mod database;
10mod engine;
11mod error;
12mod event_loop;
13mod inspector;
14mod ivm_branch;
15mod live_view;
16mod log;
17mod measure_push;
18mod mutation_tracker;
19mod planner_debug;
20mod poke_handler;
21mod query_context;
22mod query_manager;
23mod replica_store;
24mod scheduler;
25mod socket;
26#[cfg(feature = "sqlite")]
27mod sqlite;
28mod storage;
29mod transaction;
30mod zero;
31
32pub use connection_manager::{ConnectionState, ConnectionStatus, NeedsAuthReason};
33pub use engine::{
34    BatchViewUpdates, MutationOutcome, MutationServerOutcome, MutatorResult, StorageFailureHandler,
35    UpdateNeededHandler, UpdateNeededReason, ZeroOptions,
36};
37pub use error::*;
38pub use inspector::{
39    AnalyzeQueryOptions, AnalyzeQueryResult, Inspector, InspectorClient, InspectorClientGroup,
40    InspectorQuery, Metrics, PlanDebugEvent, RowCountsBySource, RowsByQuery, RowsBySource,
41};
42pub use live_view::{LiveError, LiveView};
43pub use log::{LogLevel, LogSink, StderrLogSink};
44pub use query_context::{MaterializedView, Preload, RunType, ViewListener};
45pub use scheduler::*;
46pub use socket::{SocketConnection, SocketEvents, SocketFactory, SocketMessage};
47pub use storage::*;
48pub use transaction::{Reason, TableMutator, Transaction};
49pub use zero::{ConnectAuth, Connection, MutateRequest, Mutator, Zero};