2026-05-29 14:54:24 +02:00
|
|
|
## Geomerge Demo
|
|
|
|
|
|
|
|
|
|
This demo shows how to store and read data from Geomerge.
|
|
|
|
|
|
|
|
|
|
The demo:
|
2026-05-29 15:06:44 +02:00
|
|
|
|
2026-05-29 15:53:13 +02:00
|
|
|
1. loads the compiled [`paths.json`](https://git.sgai.uk/vincent_liu/geomerge/-/raw/main/crates/geomerge/tests/data/paths.json) schema,
|
2026-05-29 14:54:24 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
### Run
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
cargo run -p geomerge-demo
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Test
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
cargo test -p geomerge-demo
|
|
|
|
|
```
|