package sihl

  1. Overview
  2. Docs
The modular functional web framework

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-queue-0.1.9.tbz
sha256=77f0813d75a88edd14b3396e8b848d94c31c28803299b4b1bd4b78b1de4a2e80
sha512=a8907bc35ea14b7c3a7d638979a2a274860202b2de58b84b5621a4908db001ace493d8aa2e5383f4c8b1847efd256938592f63ef75a41521284b3640d3a7442a

doc/sihl.database/Sihl_database/Ql/index.html

Module Sihl_database.QlSource

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

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

Innovation. Community. Security.