package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

A simple query language that can be used for HTTP queries that get passed into repositories. It currently supports filtering, sorting and pagination.

module Filter : sig ... end
module Sort : sig ... end
module Page : sig ... end
type t = {
  1. filter : Filter.t option;
  2. sort : Sort.t option;
  3. page : Page.t;
}
val to_yojson : t -> Yojson.Safe.t
val pp : Stdlib.Format.formatter -> t -> unit
val equal : t -> t -> bool
val of_string : string -> (t, string) Result.t
val to_sql : string list -> t -> string * string list
val to_sql_fragments : string list -> t -> string * string * string * string list
val to_string : t -> string
val empty : t
val set_filter : Filter.t -> t -> t
val set_filter_and : Filter.criterion -> t -> t
val set_sort : Sort.t -> t -> t
val set_limit : int -> t -> t
val set_offset : int -> t -> t
val get_page : t -> Page.t
val get_limit : t -> int option
val get_offset : t -> int option