Expand description
commands.rs
Every #[tauri::command] exposed by the entity-graph plugin.
Every command is annotated with #[specta::specta] and registered in the
tauri-specta collection so TypeScript bindings are generated from Rust.
Naming convention: Tauri surfaces these as
plugin:entity-graph-tauri|<fn_name>
matching the plugin name registered in lib.rs.
Functions§
- graph_
clear - Clear all entities and lists from the in-memory mirror.
- graph_
get_ entity - Read a single entity from the in-memory mirror.
- graph_
get_ list - Read a list from the in-memory mirror.
- graph_
patch_ entity - Record a UI-only patch overlay (acknowledged but not mirrored on Rust side).
- graph_
persist_ snapshot - Persist a JSON-serialised graph snapshot to the in-memory store and emit
a
SnapshotPersistedEvent. - graph_
platform_ ping - Invoke the registered desktop, Android, or iOS native bridge.
- graph_
remove_ entity - Remove an entity from the plugin’s in-memory mirror.
- graph_
restore_ snapshot - Return a previously persisted snapshot string and emit a
SnapshotRestoredEvent. - graph_
set_ list - Set the ordered ID array for a list query key.
- graph_
upsert_ entity - Upsert an entity into the plugin’s in-memory mirror.