package sqlgg

  1. Overview
  2. Docs
SQL Guided (code) Generator

Install

Dune Dependency

Authors

Maintainers

Sources

sqlgg-20200521.tar.gz
md5=b9e861726ce73364e303f0cc1d5ec049
sha256=b9bfd29dc5c880c324ed77ec333053317fd0806f5a64b573b5031ee7fc227deb
sha512=5f73a65b5cf5c17788a75f64b3def21a9d8e53b32a876a4fee4570317a20b48ca69879e9dadaa399d7e57f2e9d262850650bcb031fd90f6bf21abdf8d99ce1a6

doc/sqlgg.lib/Sqlgg/Tables/index.html

Module Sqlgg.TablesSource

Global list of tables

Sourcetype table = Sql.table
Sourceval all : table list ref
Sourceval by_name : Sql.table_name -> (Sql.table_name * 'a) -> bool

FIXME table names case sensitivity?

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

    when no such table

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

Innovation. Community. Security.