Module Collection.ArtistSource

Operations on artists

Sourceval set_rating : t -> SkhcDb.Database.t -> SkhcDb.Artist.t -> int option -> (SkhcDb.Artist.t, Sqlite3.Rc.t * string) result

set_rating collection database artist rating sets artist rating to rating. if SkhcDb.Artist.rating artist = rating, returns artist as is. Otherwise, call SkhcDb.Artist.update.

set_flag collection database artist sets flag to true. if artist has already flag set to true, this functions returns artist as is. Otherwise, it calls SkhcDb.Artist.update.

unset_flag collection database artist sets flag to false. if artist has already flag set to false, this functions returns artist as is. Otherwise, it calls SkhcDb.Artist.update.

Sourceval artwork : t -> SkhcDb.Artist.t -> string option

artwork library artist returns the cover bytes associated with artist in library. Returns None is artist doesn't have an artwork.

raise Sys_error if one of the underlying system calls fails.