package shakuhachi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=7d07b9c7edcd5f5cee242facf4260272c56e56eb34b897888299ceece3e61d57
sha512=305f97d253d39f3b9d260e018d45f2563bea911cb164ad4d40c450e6c21081f1e7cde68203f9be6633b6933e1bad39da8405b99e8ace58adcc07758d37b8f2fd
doc/shakuhachi.database/SkhcDb/MusicFile/index.html
Module SkhcDb.MusicFileSource
Operation on music file.
type of music file.
val init :
audioproperties:Otaglibc.audioproperties option ->
album_id:int64 option ->
size:int ->
flag:bool ->
rating:int option ->
has_cover:bool ->
string ->
tinit ~audioproperties ~album_id ~size ~flag ~has_cover name creates a music file at Unix.time () with the id = 0.
table name
equal m1 m2 tests whether m1 equals m2. 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 music files inside db and applies f to every element, keeping all Some elements returned by f.
all db queries all music files inside db.
keep_stats old new' updates new' by using play_count, flag, rating, played_at and created_at from old.
If id, id of old is also used.
insert ?old database t inserts t into database. if old, insert will use id, play_count, flag, rating and created_at fields of old to insert and returns the value.
update db music updates db with music.
remove_id db id removes music file inside db with the id id.
remove db music is remove_id db (id music).