package shakuhachi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=bb7f91cc44c09f922d2a614e9e01fd0d2976840bacf839a8b99de63c6fc5b3b8
sha512=f02827db4228b017bb2ad7d64cb1c0667831ec2341e6f759266ec834e40627c2affeace143c6d5e769b3acce63f889b3cbd1a9ca4768091840e8fce1d4750f86
doc/shakuhachi.query/SkhcQuery/Query/index.html
Module SkhcQuery.QuerySource
Operations on queries
equal lhs rhs tests whether lhs and rhs are structurally equal, not semantically. In particular, two queries matching the same elements but are structurally different will return false.
to_sexp query is a s-expression representation of query. In particular, of_sexp (to_sexp query) = Some query.
of_sexp sexp tries to parse sexp. Returns None if of_sexp fails to parse sexp.
of_strings args tries to parse args to create a query. Returns None if of_strings fails to parse sexp.
matches f query tests whether query matches according to the predicate f on a node.
val matches_musics :
Substring.t list ->
SkhcDb.MusicFile.t ->
SkhcDb.Album.t ->
(String.t * SkhcDb.Roles.t) SkhcDb.Ids.Map.t ->
SkhcMetadata.Metadata.Values.t SkhcMetadata.Metadata.Properties.t ->
t ->
boolmatches_musics substrings music album participants properties query populates fields with music, album, participants and properties and tests whether query matches.
val matches_albums :
Substring.t list ->
SkhcDb.Album.t ->
SkhcDb.Album.Stats.t ->
(string * SkhcDb.Roles.t) SkhcDb.Ids.Map.t ->
t ->
boolmatches_albums substrings album stats participants query populates fields with album, stats and participants and tests whether query matches.
matches_artists substrings artist query populates fields with artist and tests whether query matches.