sihl.database
Database.Ql
A simple query language that can be used for HTTP queries that get passed into repositories. It currently supports filtering, sorting and pagination.
sihl
sihl.authn
sihl.authz
sihl.core
sihl.email
sihl.http
sihl.message
sihl.middleware
sihl.migration
sihl.password-reset
sihl.queue
sihl.repository
sihl.schedule
sihl.session
sihl.storage
sihl.token
sihl.user
sihl.utils
module Filter : sig ... end
module Sort : sig ... end
module Page : sig ... end
type t = {
filter : Filter.t option;
sort : Sort.t option;
page : Page.t;
}
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val pp : 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