package sqlgg

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

Install

Dune Dependency

Authors

Maintainers

Sources

sqlgg-20231201.tar.gz
md5=0841965b140612b9b1fb066cc21f88cb
sha256=7fbee5972b8fa0488bf31bb482101c93c328f67ceef3e95af165d554736d78fe
sha512=5d14e03e02f62c72c57cc574fd9f637e99118556a739af16d71e8813a8cbd8c330e48d69b9577ef2e9d0227aee9d85664cb4907f479927b7431e0475d954fa1a

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

Module Sqlgg.StmtSource

Statement

Sourcetype insert_kind =
  1. | Values
  2. | Assign
Sourcetype inferred = (insert_kind * Sql.Schema.t) 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 string
  10. | 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
OCaml

Innovation. Community. Security.