Files
2026-06-13 01:36:32 +02:00

16 lines
484 B
Rust
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! Beispiel: der Delta-Row-Store in Aktion.
//! Starten mit: cargo run --example demo_delta
use pauldb::{Delta, Row};
fn main() {
let mut delta = Delta::new();
delta.insert(Row { id: 1, kategorie: "ABAP".into(), wert: 100.0 });
delta.insert(Row { id: 2, kategorie: "HANA".into(), wert: 250.5 });
println!("paulDB Demo {} Zeilen", delta.len());
for row in delta.scan() {
println!(" #{:<3} {:<6} {:>8.2}", row.id, row.kategorie, row.wert);
}
}