Skip to main content

selene_core/database/
deleteable.rs

1use crate::database::{DatabaseError, transaction_args::CompareAndSwapTransaction};
2
3pub trait Deleteable: Sized {
4    /// Deletes `self` from the database
5    ///
6    /// This function should unlink references that point to `self`
7    fn create(&self) -> Result<(Self, CompareAndSwapTransaction), DatabaseError>;
8}