package sqlgg
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
SQL Guided (code) Generator
Install
dune-project
Dependency
Authors
Maintainers
Sources
sqlgg-20260721.tbz
sha256=40d7699187951dd2f17d885c4f4f04124930bf7dc1119d4cca322c5f0cb42d8e
sha512=e7c90683cddcff3ca0ba9de9e40c2c4c69923ea62e2647f1a70083e42ed00b7cab53f8a14d1a965ee4465966bc02fa75fa7cb42e485beae1a9c26bdc252c3665
doc/src/sqlgg.lib/stmt.ml.html
Source file stmt.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45(** Statement *) open ExtLib type insert_kind = Values | Assign [@@deriving show {with_path=false}] (** inferred inserted values to complete sql statement *) type inferred = (insert_kind * Sql.schema) option [@@deriving show] (** possible number of rows in query result *) type cardinality = [`Zero_one | `One | `Nat] [@@deriving show] let cardinality_to_string = show_cardinality type kind = | Select of cardinality | Insert of inferred * Sql.table_name | Create of Sql.table_name | CreateIndex of string | Update of Sql.table_name option (** name for single-table UPDATEs *) | Delete of Sql.table_name list | Alter of Sql.table_name list | Drop of Sql.table_name | CreateRoutine of Sql.table_name (** namespaced function name *) | CreateType of string | DropType of string | Other [@@deriving show {with_path=false}] type category = DDL | DQL | DML | DCL | TCL | OTHER [@@deriving show {with_path=false}, enum] let all_categories = List.init (max_category - min_category) (fun i -> Option.get @@ category_of_enum @@ min_category + i) let category_of_stmt_kind = function | Select _ -> DQL | Insert _ | Update _ | Delete _ -> DML | Create _ | CreateIndex _ | CreateRoutine _ | Alter _ | Drop _ | CreateType _ | DropType _ -> DDL | Other -> OTHER
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>