selene-core 0.5.2

selene-core is the backend for Selene, a local-first music player
Documentation
1
2
3
4
5
6
7
8
9
10
use lunar_lib::database::{CompareAndSwapTransaction, CustomTransactionError, DatabaseEntry};

pub trait Deleteable: Sized + DatabaseEntry {
    /// Deletes `self` from the database
    ///
    /// This function should unlink references that point to `self`
    fn delete<E>(
        &self,
    ) -> Result<(Self, CompareAndSwapTransaction<Self::EntryDb>), CustomTransactionError<E>>;
}