package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

shakuhachi-0.4.0.tar.gz
sha256=8bd4675792ec93d705e68d4e43dc04aa1124fcaf644ae3a1a3fda68464276f95
sha512=712efcbe13e6e9d3336f72c2c25d4b41225cdd245f21adeeadc8aa4ad31ca9c905077e0873a3d1165d7c09357c009c859c4a7cd9c2d0c9bffc27144525594e72

doc/shakuhachi.database/SkhcDb/Query/index.html

Module SkhcDb.QuerySource

Module representing more complex queries used inside shakuhachi.

Sourceval 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) result

musics 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.

  • before 0.3.0,

    no rev optional argument.

Sourceval 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) result

music db f queries the music with id inside db and applies f to it, keeping it if Some is returned by f.

  • since 0.3.0
Sourceval albums : ?rev:bool -> Database.t -> (Album.t -> Album.Stats.t -> (string * Roles.t) Ids.Map.t -> 'a option) -> ('a list, Sqlite3.Rc.t * string) result

albums 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.

  • before 0.3.0,

    no rev optional argument.

Sourceval album : Database.t -> int64 -> (Album.t -> Album.Stats.t -> (string * Roles.t) Ids.Map.t -> 'a option) -> ('a option, Sqlite3.Rc.t * string) result

album db id f queries the album with id inside db and applies f to it, keeping it if Some is returned by f.

  • since 0.3.0
Sourceval artists : ?rev:bool -> Database.t -> (Artist.t -> string Ids.Map.t -> Artist.Stats.t -> 'a option) -> ('a list, Sqlite3.Rc.t * string) result

artists db f queries all artists inside db and applies f to every element, keeping all Some elements returned by f.

Sourceval artist : Database.t -> int64 -> (Artist.t -> string Ids.Map.t -> Artist.Stats.t -> 'a option) -> ('a option, Sqlite3.Rc.t * string) result

artist db id f queries the artist with id inside db and applies f to it, keeping it if Some is returned by f.

  • since 0.4.0