SkhcDb.PlaylistSourceOperation on playlists.
type of a playlist
val init :
name:string ->
query:string ->
smart:bool ->
flag:bool ->
rating:int option ->
cover_path:string option ->
tinit ~name ~query ~smart ~flag ~cover_path creates a playlist at Unix.time () with id = 0.
table name
equal p1 p2 tests whether p1 equals p2. All fields are used for the test.
pp format t is a preety printer for t.
all db queries all playlists inside db.
find_from_id db id tries to find the album inside db with id
find_map db f queries all playlists inside db and applies f to each element, returning the first element being Some.
insert db playlist inserts playlist inside db.
update db playlist updates db with playlist.
remove_id db id removes playlist inside db with the id id.
remove_name db name removes playlist inside db with the name name.
remove db playlist is remove_id db (id playlist).