package sqlgg

  1. Overview
  2. Docs

Global list of tables

type table = Sql.table
val by_name : Sql.table_name -> (Sql.table_name * 'a) -> bool

FIXME table names case sensitivity?

val get_from : (Sql.table_name * 'a) list -> Sql.table_name -> Sql.table_name * 'a
  • raises Error

    when no such table

val get : Sql.table_name -> table
val get_schema : Sql.table_name -> Sql.schema
val check : Sql.table_name -> unit
val add : table -> unit
val drop : Sql.table_name -> unit
val rename : Sql.table_name -> Sql.table_name -> unit
val alter : Sql.table_name -> (Sql.schema -> Sql.schema) -> unit
val alter_add : Sql.table_name -> Sqlgg__Sql.attr -> [< `After of string | `Default | `First ] -> unit
val alter_drop : Sql.table_name -> string -> unit
val alter_change : Sql.table_name -> string -> Sqlgg__Sql.attr -> [< `After of string & 'a | `Default | `First ] -> unit
val rename_column : Sql.table_name -> string -> string -> unit
val print : out_channel -> (Sql.table_name * Sql.attr list) list -> unit
val print_all : unit -> unit
val print1 : string -> unit
val reset : unit -> unit
val all : unit -> table list
OCaml

Innovation. Community. Security.