package shakuhachi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8bd4675792ec93d705e68d4e43dc04aa1124fcaf644ae3a1a3fda68464276f95
sha512=712efcbe13e6e9d3336f72c2c25d4b41225cdd245f21adeeadc8aa4ad31ca9c905077e0873a3d1165d7c09357c009c859c4a7cd9c2d0c9bffc27144525594e72
doc/shakuhachi.database/SkhcDb/Query/index.html
Module SkhcDb.QuerySource
Module representing more complex queries used inside shakuhachi.
val musics :
?rev:bool ->
Database.t ->
(MusicFile.t ->
Album.t ->
(string * Roles.t) Ids.Map.t ->
SkhcMetadata.Metadata.Values.t SkhcMetadata.Metadata.Properties.t ->
'a option) ->
('a list, Sqlite3.Rc.t * string) resultmusics db f queries all musics inside db and applies f to every element, keeping all Some elements returned by f. If rev, elements are returned in the reversed order.
val music :
Database.t ->
int64 ->
(MusicFile.t ->
Album.t ->
(string * Roles.t) Ids.Map.t ->
SkhcMetadata.Metadata.Values.t SkhcMetadata.Metadata.Properties.t ->
'a option) ->
('a option, Sqlite3.Rc.t * string) resultmusic db f queries the music with id inside db and applies f to it, keeping it if Some is returned by f.
val albums :
?rev:bool ->
Database.t ->
(Album.t -> Album.Stats.t -> (string * Roles.t) Ids.Map.t -> 'a option) ->
('a list, Sqlite3.Rc.t * string) resultalbums db f queries all albums inside db and applies f to every element, keeping all Some elements returned by f. If rev, elements are returned in the reversed order.
val album :
Database.t ->
int64 ->
(Album.t -> Album.Stats.t -> (string * Roles.t) Ids.Map.t -> 'a option) ->
('a option, Sqlite3.Rc.t * string) resultalbum db id f queries the album with id inside db and applies f to it, keeping it if Some is returned by f.
val artists :
?rev:bool ->
Database.t ->
(Artist.t -> string Ids.Map.t -> Artist.Stats.t -> 'a option) ->
('a list, Sqlite3.Rc.t * string) resultartists db f queries all artists inside db and applies f to every element, keeping all Some elements returned by f.
val artist :
Database.t ->
int64 ->
(Artist.t -> string Ids.Map.t -> Artist.Stats.t -> 'a option) ->
('a option, Sqlite3.Rc.t * string) resultartist db id f queries the artist with id inside db and applies f to it, keeping it if Some is returned by f.