Module SkhcQuery.FieldSource

Operations on field node' values.

Sourcemodule String : sig ... end

Operations on string field node.

Sourcemodule Bool : sig ... end

Operations on boolean field node.

Sourcemodule Int64 : sig ... end

Operations on integer64 field node.

Sourcemodule Int : sig ... end

Operations on integer field node.

Sourcemodule Float : sig ... end

Operations on float field node.

Sourcetype ('s, 'b, 'i, 'i64, 'f) t =
  1. | FString of 's String.t
  2. | FBool of 'b Bool.t
  3. | FInt of 'i Int.t
  4. | FInt64 of 'i64 Int64.t
  5. | FFloat of 'f Float.t

type of field node' values.

Sourceval string : 's String.t -> ('s, _, _, _, _) t

string s is FString s.

Sourceval bool : 'b Bool.t -> (_, 'b, _, _, _) t

bool s is FBool s.

Sourceval int : 'i Int.t -> (_, _, 'i, _, _) t

int s is FInt s.

Sourceval int64 : 'i64 Int64.t -> (_, _, _, 'i64, _) t

int64 s is FInt64 s.

Sourceval float : 'f Float.t -> (_, _, _, _, 'f) t

float s is FFloat s.

Sourceval title : bool -> bool -> 's -> ('s, 'b, 'i, 'i64, 'f) t

title regex insensible s is string (String.title).

Sourceval sort_name : bool -> bool -> 's -> ('s, _, _, _, _) t

sort_name regex insensible s is string (String.sort_name).

Sourceval artist : bool -> bool -> 's -> ('s, _, _, _, _) t

artist regex insensible s is string (String.artist).

Sourceval album : bool -> bool -> 's -> ('s, _, _, _, _) t

album regex insensible s is string (String.album).

Sourceval album_artist : bool -> bool -> 's -> ('s, _, _, _, _) t

album_artist regex insensible s is string (String.album_artist).

Sourceval composer : bool -> bool -> 's -> ('s, _, _, _, _) t

composer regex insensible s is string (String.composer).

Sourceval genre : bool -> bool -> 's -> ('s, _, _, _, _) t

genre regex insensible s is string (String.genre).

Sourceval path : bool -> bool -> 's -> ('s, _, _, _, _) t

path regex insensible s is string (String.path).

Sourceval extension : bool -> bool -> 's -> ('s, _, _, _, _) t

extension regex insensible s is string (String.extension).

Sourceval arbitrary : bool -> bool -> string -> 's -> ('s, _, _, _, _) t

arbitrary regex insensible key value is string (String.artibrary).

  • since 0.3.0
Sourceval art : 'b -> (_, 'b, _, _, _) t

art b is bool (Bool.art)

Sourceval flag : 'b -> (_, 'b, _, _, _) t

flag b is bool (Bool.flag)

Sourceval id : 'i64 Range.t -> (_, _, _, 'i64, _) t

id i is int (Int.id).

Sourceval size : 'i64 Range.t -> (_, _, _, 'i64, _) t

size i is int (Int.size).

Sourceval track : 'i Range.t -> (_, _, 'i, _, _) t

track i is int (Int.track).

Sourceval year : 'i Range.t -> (_, _, 'i, _, _) t

year i is int (Int.year).

Sourceval disc : 'i Range.t -> (_, _, 'i, _, _) t

disc i is int (Int.disc).

Sourceval plays : 'i Range.t -> (_, _, 'i, _, _) t

plays i is int (Int.plays).

Sourceval length : 'i Range.t -> (_, _, 'i, _, _) t

length i is int (Int.length).

Sourceval rating : 'i Range.t -> (_, _, 'i, _, _) t

rating i is int (Int.rating).

Sourceval album_count : 'i Range.t -> (_, _, 'i, _, _) t

album_count i is int (Int.album_count).

Sourceval avg_duration : 'f Range.t -> (_, _, _, _, 'f) t

avg_duration f is float (Float.avg_duration).

Sourceval avg_rating : 'f Range.t -> (_, _, _, _, 'f) t

avg_rating f is float (Float.avg_rating).

Sourceval avg_size : 'f Range.t -> (_, _, _, _, 'f) t

avg_size f is float (Float.avg_size).

Sourceval fold : ('a String.t -> 'b) -> ('c Bool.t -> 'b) -> ('e Int.t -> 'b) -> ('d Int64.t -> 'b) -> ('f Float.t -> 'b) -> ('a, 'c, 'e, 'd, 'f) t -> 'b

fold s b i i64 f field is s e if field is FString e, b e if field is FBool e, i e if field is FInt e, i64 e if field is FInt64 e and f e if field is FFloat e.

  • since 0.3.0
Sourceval to_string : (string, bool, int, int64, float) t -> string

to_string field returns a string representation of field.

Sourceval to_sexp : (string, bool, int, int64, float) t -> string

to_sexp field returns a s-expression compatible string of field.

Sourceval is_string : (_, _, _, _, _) t -> bool

is_string field tests whether field is a string valued field.