shakuhachi.database
Album.Stats
Operations on album's stats
shakuhachi.config
shakuhachi.libs
shakuhachi.metadata
shakuhachi.plugin
shakuhachi.query
shakuhachi.util
type t
type of album's stats
val init : music_count:int -> duration:int -> play_count:int -> size:int64 -> avg_rating:float -> t
init ~music_count ~duration ~play_count ~size ~avg_rating creates a new album stats.
init ~music_count ~duration ~play_count ~size ~avg_rating
val to_yojson : t -> Yojson.Safe.t
val music_count : t -> int
music_count stats returns the number of songs.
music_count stats
val duration : t -> int
duration stats returns the total duration.
duration stats
val play_count : t -> int
play_count stats returns the sum of play count.
play_count stats
val size : t -> int64
size stats returns the total size.
size stats
val avg_duration : t -> float
avg_duration stats returns the average duration.
avg_duration stats
val avg_rating : t -> float
avg_rating stats returns the average rating.
avg_rating stats
val avg_size : t -> float
avg_size stats returns the average size.
avg_size stats