Module SkhcConfig.QuerySource

Operations on the .query section.

Sourcetype t

type of the query section.

Sourceval section : string

section name.

Sourceval default : t

default is the section used if the query section is missing from the configuration file.

init ~artist ~album ~title creates a default section with artist, album and title.

Sourceval of_section : Section.t -> t

of_section section parse section to create a query section. If an expected key is missing from section, the key is associated with its default value.

Sourceval to_section : t -> Section.t

to_section query serializes query into a section.

fields query returns the fields used when matching substring node in a query.