package sqlgg

  1. Overview
  2. Docs
type t = attr list
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
exception Error of t * string
val by_name : string -> attr -> bool

FIXME attribute case sensitivity?

val find_by_name : attr list -> string -> attr list
val find : t -> string -> attr
val make_unique : attr list -> attr list
val is_unique : attr list -> bool
val check_unique : t -> bool
val project : string list -> t -> attr list
val change_inplace : t -> string -> attr -> attr list
val exists : t -> string -> bool
val rename : t -> string -> string -> attr list
val cross : 'a list -> 'a list -> 'a list
val contains : t -> attr -> bool

contains t attr tests whether schema t contains attribute attr

val check_contains : t -> attr -> unit
val sub : 'a list -> 'a list -> 'a list
val names : attr list -> string
val natural_ : 'a list -> 'a list -> 'a list
val natural : t -> attr list -> attr list
val join_using : string list -> t -> t -> attr list
val check_types : t -> attr list -> unit
val compound : t -> attr list -> t
val add : t -> attr -> [< `After of string | `Default | `First ] -> attr list
val drop : t -> string -> attr list
val change : t -> string -> attr -> [< `After of string & 'a | `Default | `First ] -> attr list
val to_string : t -> Ppx_deriving_runtime.string
val print : t -> unit
OCaml

Innovation. Community. Security.