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

Method delete_for_message

crates/opencode-storage/src/repository.rs:930–938  ·  view source on GitHub ↗
(&self, message_id: &str)

Source from the content-addressed store, hash-verified

928 }
929
930 pub async fn delete_for_message(&self, message_id: &str) -> Result<(), DatabaseError> {
931 sqlx::query("DELETE FROM parts WHERE message_id = ?")
932 .bind(message_id)
933 .execute(&self.pool)
934 .await
935 .map_err(|e| DatabaseError::QueryError(e.to_string()))?;
936
937 Ok(())
938 }
939
940 pub async fn delete_for_session(&self, session_id: &str) -> Result<(), DatabaseError> {
941 sqlx::query("DELETE FROM parts WHERE session_id = ?")

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected