feat(fifa17): route SBCs through atomic Rust Core
This commit is contained in:
@@ -159,6 +159,16 @@ impl PileStore {
|
||||
.map(|r| r.get::<String, _>("core_item_id"))
|
||||
.collect())
|
||||
}
|
||||
/// Remove stale presentation metadata after Core has consumed an item.
|
||||
/// Projection paths still intersect Core ownership, so failure is safe.
|
||||
pub async fn remove(&self, core_item_id: &str) -> Result<(), PileError> {
|
||||
sqlx::query("DELETE FROM item_pile WHERE core_item_id = ?")
|
||||
.bind(core_item_id)
|
||||
.execute(&self.pool)
|
||||
.await
|
||||
.map_err(db)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user