Crates.io | wal-s |
lib.rs | wal-s |
version | 0.2.0 |
source | src |
created_at | 2022-07-18 12:36:00.690951 |
updated_at | 2022-07-24 09:30:25.651415 |
description | Implementation of write-ahead log based storage. |
homepage | |
repository | |
max_upload_size | |
id | 627717 |
size | 51,652 |
Implementation of write-ahead log based storage.
Write-Ahead Log
Read snapshots
Write batching
Metadata support
Stateless iterators
Stateful iterators
Sliding window
Counter and time based identifiers
Distance metrics
Data exporting
WALS::new("stream1", db)
.snapshot()
.iter()
.for_each(|record| {
let stream2 = WALS::from("stream2", db);
let result = process(record);
stream2.append(result);
})
stream
.flush()
.snapshot()
.unwrap()
.window(10, &StreamID::default())
.for_each(|batch| {
println!("size={}", batch.len());
assert_eq!(batch.len(), 10);
counter += 1;
});
TBD