36 lines
945 B
Markdown
Raw Normal View History

2026-05-29 14:54:24 +02:00
## Geomerge Demo
This demo shows how to store and read data from Geomerge.
The demo:
1. loads the compiled `paths.json` schema,
2. creates a Geomerge store,
3. inserts a small graph dataset in one transaction,
4. reads the inserted edge back,
5. persists the store to bytes,
6. reloads it, and checks that the restored store matches the original.
![Workflow Diagram](docs/diagrams/workflow.svg)
The SVG is generated from `docs/diagrams/workflow.dot`. To regenerate it after editing the `.dot` source, run:
```sh
bash docs/diagrams/make_figures.sh docs/diagrams
```
### Run
```sh
cargo run -p geomerge-demo
```
Expected output includes table and law counts, row counts for graphs, vertices, and edges, edge endpoints, and persisted byte size.
### Test
```sh
cargo test -p geomerge-demo
```
The tests cover the successful store, read, and persistence round trip, plus a rejected invalid edge insert that must leave the store unchanged.