-
Notifications
You must be signed in to change notification settings - Fork 0
api tauri commands
Douwe de Vries edited this page Jul 2, 2026
·
2 revisions
Tauri commands support desktop mode with native file dialogs and raw IPC file uploads. Commands share backend workflows with the REST API.
| Command | File | Purpose |
|---|---|---|
create_session |
src-tauri/src/commands.rs |
Create a session. |
delete_session |
src-tauri/src/commands.rs |
Delete a session. |
load_csv_bytes |
src-tauri/src/commands.rs |
Load selected CSV bytes with metadata headers. |
suggest_mappings |
src-tauri/src/commands.rs |
Suggest column mappings. |
compare |
src-tauri/src/commands.rs |
Run comparison. |
export_results |
src-tauri/src/commands.rs |
Save CSV export through native dialog. |
export_results_html |
src-tauri/src/commands.rs |
Save frontend-built HTML through native dialog. |
save_pair_order / load_pair_order
|
src-tauri/src/commands.rs |
Save/load pair-order files through dialogs. |
save_comparison_snapshot / load_comparison_snapshot
|
src-tauri/src/commands.rs |
Save/load snapshots through dialogs. |
| File | Purpose |
|---|---|
src-tauri/src/main.rs |
Command registration with tauri_commands!. |
src-tauri/src/commands.rs |
Command implementations. |
frontend/src/services/tauriCommands.ts |
Frontend command name constants. |
frontend/src/services/tauri.ts |
invoke calls and raw upload metadata. |
src-tauri/src/tests.rs |
Wrapper command tests. |
load_csv_bytes intentionally sends file contents as a raw IPC body. The session id, file letter, and percent-encoded file name travel in headers so large CSV uploads avoid JSON byte-array overhead.
See transport parity before changing command names.