package shakuhachi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=91dc3168bc12fdd6032c16f9990018fd54f91cea50d9f6eb798e4d5eecd9c6a6
sha512=a93c4bf39d80d2c595d361b393f0f1fd2fd078e5bd714988e835a0b5ac8c8c48d3b4cbe2e11d33c9168d9f2f44818b6a60e38b32773bd4967c24794abbf323dd
doc/shakuhachi.database/SkhcDb/Artist/index.html
Module SkhcDb.ArtistSource
Operation on artists.
type of artist
val init :
sort_name:string option ->
description:string option ->
artwork:string option ->
flag:bool ->
rating:int option ->
string ->
tinit ~sort_name ~description ~artwork ~flag ~rating name creates an album at Unix.time () with the id = 0.
artist's table name.
equal a1 a2 tests whether a1 equals a2. All fields are used for the test.
pp format t is a preety printer for t.
find_from_id db id tries to find the artist inside db with id
filter_map db f queries all artist inside db and applies f to every element, keeping all Some elements returned by f.
all db queries all artists inside db.
update db artist updates db with artist.
insert db artist inserts artist inside db.
remove_id db id removes artist inside db with the id id.
remove db album is remove_id db (id album).
find_or_insert db artist tries to find an artist with name name artist. If artist is found, returns the first artist with this name found and true, otherwise returns artist returned by insert and false.
find_or_insert db artist tries to find an artist with name name artist. If artist is found, returns the first artist with this name found and true, otherwise returns artist returned by update and false.