MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / delete_for_session

Method delete_for_session

crates/opencode-storage/src/repository.rs:569–577  ·  view source on GitHub ↗
(&self, session_id: &str)

Source from the content-addressed store, hash-verified

567 }
568
569 pub async fn delete_for_session(&self, session_id: &str) -> Result<(), DatabaseError> {
570 sqlx::query("DELETE FROM messages WHERE session_id = ?")
571 .bind(session_id)
572 .execute(&self.pool)
573 .await
574 .map_err(|e| DatabaseError::QueryError(e.to_string()))?;
575
576 Ok(())
577 }
578}
579
580#[derive(Debug, Clone, Serialize, Deserialize)]

Callers 4

handle_session_commandFunction · 0.80
updateMethod · 0.80
clearMethod · 0.80

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected