[−][src]Trait khalzam::db::Repository
Repository
is an abstraction of database containing fingerprints.
Required methods
fn index(&self, song: &str, hash_array: &[usize]) -> Result<(), Box<dyn Error>>
Map hashes from hash_array to song.
fn find(&self, hash_array: &[usize]) -> Result<Option<String>, Box<dyn Error>>
Find the most similar song by hashes.
fn delete(&self, song: &str) -> Result<u64, Box<dyn Error>>
Delete song from database.