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;
  4. db : db;
}
val select : t -> predicate:Phrase.Option.t -> t

Add a further selection criterion to an existing predicate.

val of_sort : db -> sort:Sort.t -> t

Construct a select query from a lens sort.

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

Innovation. Community. Security.