| Crates.io | rigatoni-core |
| lib.rs | rigatoni-core |
| version | 0.2.0 |
| created_at | 2025-11-22 13:20:28.834035+00 |
| updated_at | 2025-12-12 12:47:50.51587+00 |
| description | Core traits, pipeline orchestration, and MongoDB integration for Rigatoni CDC/Data Replication framework |
| homepage | https://github.com/valeriouberti/rigatoni |
| repository | https://github.com/valeriouberti/rigatoni |
| max_upload_size | |
| id | 1945323 |
| size | 358,014 |
Core traits, pipeline orchestration, and MongoDB integration for the Rigatoni CDC/Data Replication framework.
rigatoni-core provides the foundational components for building data replication pipelines with Rigatoni:
Add this to your Cargo.toml:
[dependencies]
rigatoni-core = "0.2.0"
use rigatoni_core::pipeline::{Pipeline, PipelineConfig};
use rigatoni_stores::memory::MemoryStore;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = PipelineConfig::builder()
.mongodb_uri("mongodb://localhost:27017")
.database("mydb")
.collections(vec!["users".to_string()])
.batch_size(1000)
.build()?;
let store = MemoryStore::new();
let destination = /* your destination */;
let mut pipeline = Pipeline::new(config, store, destination).await?;
pipeline.start().await?;
Ok(())
}
This crate includes:
Licensed under the Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).