Skip to main content

create_app_state

Function create_app_state 

Source
pub async fn create_app_state(db_path: &str) -> Result<AppState, String>
Expand description

Create a shared AppState from a database path.

This is useful when you need to share the state between the HTTP server and other consumers (e.g. Tauri IPC commands, JSON-RPC router).