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

Method delete

crates/opencode-storage/src/repository.rs:333–341  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

331 }
332
333 pub async fn delete(&self, id: &str) -> Result<(), DatabaseError> {
334 sqlx::query("DELETE FROM sessions WHERE id = ?")
335 .bind(id)
336 .execute(&self.pool)
337 .await
338 .map_err(|e| DatabaseError::QueryError(e.to_string()))?;
339
340 Ok(())
341 }
342
343 pub async fn list_children(&self, parent_id: &str) -> Result<Vec<Session>, DatabaseError> {
344 let rows = sqlx::query_as::<_, SessionRow>(

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected