package sqlgg
SQL Guided (code) Generator
Install
Dune Dependency
Authors
Maintainers
Sources
sqlgg-20200521.tar.gz
md5=b9e861726ce73364e303f0cc1d5ec049
sha256=b9bfd29dc5c880c324ed77ec333053317fd0806f5a64b573b5031ee7fc227deb
sha512=5f73a65b5cf5c17788a75f64b3def21a9d8e53b32a876a4fee4570317a20b48ca69879e9dadaa399d7e57f2e9d262850650bcb031fd90f6bf21abdf8d99ce1a6
doc/src/sqlgg.traits/sqlgg_traits.ml.html
Source file sqlgg_traits.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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
(** OCaml traits signature for sqlgg by ygrek 2014-06-08 This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. For more information, please refer to <http://unlicense.org/> *) module type Value = sig type t end module type M = sig type statement type connection type params type row type result (** datatypes *) module Types : sig module Bool : Value module Int : Value module Float : Value module Text : Value module Decimal : Value module Datetime : Value module Any : Value end open Types type num = Int.t type text = Text.t type any = Any.t type datetime = Datetime.t exception Oops of string val get_column_Bool : row -> int -> Bool.t val get_column_Int : row -> int -> Int.t val get_column_Text : row -> int -> Text.t val get_column_Any : row -> int -> Any.t val get_column_Float : row -> int -> Float.t val get_column_Decimal : row -> int -> Decimal.t val get_column_Datetime : row -> int -> Datetime.t val get_column_Bool_nullable : row -> int -> Bool.t option val get_column_Int_nullable : row -> int -> Int.t option val get_column_Text_nullable : row -> int -> Text.t option val get_column_Any_nullable : row -> int -> Any.t option val get_column_Float_nullable : row -> int -> Float.t option val get_column_Decimal_nullable : row -> int -> Decimal.t option val get_column_Datetime_nullable : row -> int -> Datetime.t option val start_params : statement -> int -> params val finish_params : params -> result (** [set_param_* stmt index val]. [index] is 0-based, @raise Oops on error *) val set_param_null : params -> unit val set_param_Text : params -> Text.t -> unit val set_param_Any : params -> Any.t -> unit val set_param_Bool : params -> Bool.t -> unit val set_param_Int : params -> Int.t -> unit val set_param_Float : params -> Float.t -> unit val set_param_Decimal : params -> Decimal.t -> unit val set_param_Datetime : params -> Datetime.t -> unit val no_params : statement -> result (** Perform query (cardinality "any") and return results via callback for each row @raise Oops on error *) val select : connection -> string -> (statement -> result) -> (row -> unit) -> unit (** Perform query (cardinality "zero or one") and return first row if available @raise Oops on error *) val select_one_maybe : connection -> string -> (statement -> result) -> (row -> 'r) -> 'r option (** Perform query (cardinality "one") and return first row @raise Oops on error *) val select_one : connection -> string -> (statement -> result) -> (row -> 'r) -> 'r (** Execute non-query. @raise Oops on error @return number of affected rows *) val execute : connection -> string -> (statement -> result) -> int64 end module type M_io = sig include M module IO : Sqlgg_io.M val finish_params : params -> result IO.future val no_params : statement -> result IO.future val select : connection -> string -> (statement -> result IO.future) -> (row -> unit) -> unit IO.future val select_one_maybe : connection -> string -> (statement -> result IO.future) -> (row -> 'b) -> 'b option IO.future val select_one : connection -> string -> (statement -> result IO.future) -> (row -> 'b) -> 'b IO.future val execute : connection -> string -> (statement -> result IO.future) -> int64 IO.future end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>