selene-core 0.3.0

selene-core is the backend for Selene, a local-first music player
Documentation
1
2
3
4
5
6
7
8
use crate::database::{DatabaseError, transaction_args::CompareAndSwapTransaction};

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