package shakuhachi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=966fc8667c2aa9830e64950d2de74bd564a65d60e1f50cfd3dc1e99ef106dc47
sha512=6423ce04d784ba521a7f49fabdafbe036e2dd80cd08ca999fdc6767262d7f12aa4e5002d65efd4c568b343eaabf4d680191c88334d629e1ca0156084531e9e0b
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.