package sqlgg
SQL Guided (code) Generator
Install
Dune Dependency
Authors
Maintainers
Sources
sqlgg-20231201.tar.gz
md5=0841965b140612b9b1fb066cc21f88cb
sha256=7fbee5972b8fa0488bf31bb482101c93c328f67ceef3e95af165d554736d78fe
sha512=5d14e03e02f62c72c57cc574fd9f637e99118556a739af16d71e8813a8cbd8c330e48d69b9577ef2e9d0227aee9d85664cb4907f479927b7431e0475d954fa1a
doc/sqlgg.lib/Sqlgg/Sql/index.html
Module Sqlgg.Sql
Source
Source
val pp_table_name :
Ppx_deriving_runtime.Format.formatter ->
table_name ->
Ppx_deriving_runtime.unit
optional name and start/end position in string
Source
val pp_param_id :
Ppx_deriving_runtime.Format.formatter ->
param_id ->
Ppx_deriving_runtime.unit
Source
val pp_direction :
Ppx_deriving_runtime.Format.formatter ->
direction ->
Ppx_deriving_runtime.unit
Source
and source =
[ `Select of select_full | `Table of table_name | `Nested of nested ]
* table_name option
Source
and expr =
| Value of Type.t
(*literal value
*)| Param of param
| Inparam of param
| Choices of param_id * expr choices
| InChoice of param_id * [ `In | `NotIn ] * expr
| Fun of Type.func * expr list
(*parameters
*)| SelectExpr of select_full * [ `AsValue | `Exists ]
| Column of col_name
| Inserted of string
(*inserted value
*)
Source
val pp_col_name :
Ppx_deriving_runtime.Format.formatter ->
col_name ->
Ppx_deriving_runtime.unit
Source
val pp_join_cond :
Ppx_deriving_runtime.Format.formatter ->
join_cond ->
Ppx_deriving_runtime.unit
Source
val pp_select_full :
Ppx_deriving_runtime.Format.formatter ->
select_full ->
Ppx_deriving_runtime.unit
Source
val pp_choices :
'expr. (Ppx_deriving_runtime.Format.formatter ->
'expr ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'expr choices ->
Ppx_deriving_runtime.unit
Source
val show_choices :
'expr. (Ppx_deriving_runtime.Format.formatter ->
'expr ->
Ppx_deriving_runtime.unit) ->
'expr choices ->
Ppx_deriving_runtime.string
Source
val pp_columns :
Ppx_deriving_runtime.Format.formatter ->
columns ->
Ppx_deriving_runtime.unit
Source
type insert_action = {
target : table_name;
action : [ `Set of assignments option | `Values of string list option * [ `Expr of expr | `Default ] list list option | `Param of string list option * param_id | `Select of string list option * select_full ];
on_duplicate : assignments option;
}
Source
type stmt =
| Create of table_name * [ `Schema of schema | `Select of select_full ]
| Drop of table_name
| Alter of table_name * alter_action list
| Rename of (table_name * table_name) list
| CreateIndex of string * table_name * string list
| Insert of insert_action
| Delete of table_name * expr option
| DeleteMulti of table_name list * nested * expr option
| Set of string * expr
| Update of table_name * assignments * expr option * order * param list
| UpdateMulti of source list * assignments * expr option
| Select of select_full
| CreateRoutine of string * Type.t option * (string * Type.t * expr option) list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>