Modulstruktur: storage/sql/compression/merge/query/txn + tests/examples/docs
CI / build-and-test (push) Successful in 47s
CI / build-and-test (push) Successful in 47s
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
//! 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user