package shakuhachi

  1. Overview
  2. Docs
A music collection manager

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.1.tar.gz
sha256=91dc3168bc12fdd6032c16f9990018fd54f91cea50d9f6eb798e4d5eecd9c6a6
sha512=a93c4bf39d80d2c595d361b393f0f1fd2fd078e5bd714988e835a0b5ac8c8c48d3b4cbe2e11d33c9168d9f2f44818b6a60e38b32773bd4967c24794abbf323dd

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 : Database.t -> (Artist.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.