SkhcDb.AlbumSourceOperation on albums.
type of an album.
val init :
sort_name:string option ->
year:int option ->
compilation:bool ->
flag:bool ->
rating:int option ->
comment:string option ->
genre:string option ->
cover_path:string option ->
string ->
tinit ~sort_name ~year ~compilation ~flag ~rating ~comment ~genre ~cover_path name creates an album at Unix.time () with 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 album inside db with id
filter_map db f queries all albums inside db and applies f to every element, keeping all Some elements returned by f.
all db queries all albums inside db.
insert db album inserts album inside db.
update db album updates db with album and set updated_at to Unix.time ().
remove db album is remove_id db (id album).