Expand description
oversync — a lightweight data sync engine: poll, delta, sink.
§Quick Start (embedded)
use oversync::OversyncEngine;
let engine = OversyncEngine::builder("mem://")
.skip_schema(true)
.build()
.await?;
engine.start_from_toml(std::path::Path::new("oversync.toml")).await?;
// engine.shutdown().await;Re-exports§
pub use config::SyncConfig;pub use config_db::load_config_from_db;pub use cycle::CycleConfig;pub use cycle::CycleRunner;pub use embedded::EmbeddedSync;pub use embedded::EmbeddedSyncBuilder;pub use engine::OversyncEngine;pub use lifecycle::LifecycleManager;pub use registry::PluginRegistry;pub use scheduler::Scheduler;
Modules§
- alerting
- config
- config_
db - config_
version - credential
- cycle
- distributed_
lock - dlq
- dry_run
- embedded
- engine
- error
- lifecycle
- metrics
- model
- pipe_
status - rate_
limit - registry
- resilient_
db - Dual-connection SurrealDB wrapper with proactive health checking.
- scheduler
- table_
names - Per-pipeline SurrealDB table names.
- traits
Structs§
- Delta
Event - Delta
Result - Event
Envelope - Wire format for sink delivery. Each event is one message.
- Event
Meta - Kafka
Auth - Oversync
Config - RawRow
- Table
Names - Table names for a sync pipeline’s internal state.
- Transform
Pipeline - Chain multiple
TransformHooks into a sequential pipeline.
Enums§
Traits§
- Origin
Connector - An origin connector fetches rows from an external data source.
- Origin
Factory - Factory for creating
OriginConnectors from a JSON config object. - Sink
- A target connector delivers delta events to a destination.
- Target
Factory - Factory for creating
Sinktarget connectors from a JSON config object. - Transform
Hook - Rust-native event transform hook. Consumers implement this to modify
EventEnvelopes in-flight before they reach sinks. Takes precedence over SurrealQLfn::*transforms when set on a [CycleRunner].