pub async fn stats( __arg0: State<Arc<AppState>>, ) -> Result<impl IntoResponse, ApiError>
Returns database statistics (memory count, index size, etc.).