package links

  1. Overview
  2. Docs
type db = t
type t = {
  1. tables : (string * string) list;
  2. cols : Column.t list;
  3. predicate : Phrase.Option.t;
}
val select : t -> predicate:Phrase.Option.t -> t

Add a further selection criterion to an existing predicate.

val of_sort : sort:Sort.t -> t

Construct a select query from a lens sort.

val fmt : db:db -> Stdlib.Format.formatter -> t -> unit
val execute : t -> db:db -> field_types:(string * Links_lens__.Phrase_type.t) list -> Links_lens__.Phrase_value.t list
val query_exists : t -> db:db -> bool
OCaml

Innovation. Community. Security.