package sqlgg

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

sqlgg-20260721.tbz
sha256=40d7699187951dd2f17d885c4f4f04124930bf7dc1119d4cca322c5f0cb42d8e
sha512=e7c90683cddcff3ca0ba9de9e40c2c4c69923ea62e2647f1a70083e42ed00b7cab53f8a14d1a965ee4465966bc02fa75fa7cb42e485beae1a9c26bdc252c3665

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

Module Sqlgg.StmtSource

Statement

Sourcetype insert_kind =
  1. | Values
  2. | Assign
Sourcetype inferred = (insert_kind * Sql.schema) option

inferred inserted values to complete sql statement

Sourcetype cardinality = [
  1. | `Zero_one
  2. | `One
  3. | `Nat
]

possible number of rows in query result

Sourceval cardinality_to_string : cardinality -> Ppx_deriving_runtime.string
Sourcetype kind =
  1. | Select of cardinality
  2. | Insert of inferred * Sql.table_name
  3. | Create of Sql.table_name
  4. | CreateIndex of string
  5. | Update of Sql.table_name option
    (*

    name for single-table UPDATEs

    *)
  6. | Delete of Sql.table_name list
  7. | Alter of Sql.table_name list
  8. | Drop of Sql.table_name
  9. | CreateRoutine of Sql.table_name
    (*

    namespaced function name

    *)
  10. | CreateType of string
  11. | DropType of string
  12. | Other
Sourcetype category =
  1. | DDL
  2. | DQL
  3. | DML
  4. | DCL
  5. | TCL
  6. | OTHER
Sourceval min_category : int
Sourceval max_category : int
Sourceval category_to_enum : category -> int
Sourceval category_of_enum : int -> category option
Sourceval all_categories : category list
Sourceval category_of_stmt_kind : kind -> category