package macaque
DSL for SQL Queries in Caml
Install
Dune Dependency
Authors
Maintainers
Sources
0.8.0.tar.gz
md5=368c955b6194acfb6bdc249981f991c1
sha512=9300296fde4a7c0a808a2f8cb915cf7c35cd2fa9e224213f1cab07a315638908d5e705b85dc68b4d85b5896489610004bca45ee325449d216b2c2036e90d80bf
doc/macaque/Sql/index.html
Module Sql
val nullable_witness : nullable nul_witness
val non_nullable_witness : non_nullable nul_witness
class type 't type_info = object ... end
class type numeric_t = object ... end
class type unit_t = object ... end
class type bool_t = object ... end
class type int16_t = object ... end
class type int32_t = object ... end
class type int64_t = object ... end
class type float_t = object ... end
class type string_t = object ... end
class type bytea_t = object ... end
class type time_t = object ... end
class type date_t = object ... end
class type timestamp_t = object ... end
class type timestamptz_t = object ... end
class type interval_t = object ... end
class type int32_array_t = object ... end
class type 'row row_t = object ... end
type 't type_info_only = < t : 't type_info >
type 'phant binary_op = 'a t -> 'b t -> 'c t
constraint 'a = < t : 'in_t ; nul : 'n.. >
constraint 'b = < t : 'in_t ; nul : 'n.. >
constraint 'c = < t : 'out_t ; nul : 'n >
constraint
'phant =
< in_t : 'in_t ; out_t : 'out_t ; nul : 'n ; a : 'a ; b : 'b >
type synonyms for convenience
type 'a non_nullable_data = < get : unit ; t : 'a ; nul : non_nullable > t
val unsafe : 'a -> 'a unsafe
type 'a result_parser = (string array * int ref) -> 'a
parsers
type 'a record_parser = untyped sql_type Sql_base.tuple -> 'a result_parser
val get : < get : _ ; nul : non_nullable ; t : 't type_info > t -> 't
access functions
val parse : 'a sql_type -> 'a t result_parser
parse function
val row :
string unsafe ->
('a, _) view ->
< t : < typ : 'a > ; nul : non_nullable > t
val tuple :
untyped t Sql_base.tuple unsafe ->
(tuple:'tup -> untyped t Sql_base.tuple) unsafe ->
'tup record_parser unsafe ->
< t : < typ : 'tup > ; nul : non_nullable > t
type from = (untyped, untyped) view Sql_base.tuple
val grouped_row : grouped_row
val table :
untyped sql_type Sql_base.tuple ->
(row:'row -> untyped t Sql_base.tuple) unsafe ->
'row record_parser ->
(string option * string) ->
('def * untyped t Sql_base.tuple) ->
('row, 'def writable) view
tables
module Table_type : sig ... end
standard SQL field types (in pa_descr, ie. <:table< .. >>)
val sql_of_query : _ query -> string
query printing
val sql_of_view : (_, _) view -> string
handle result from PGOCaml call
module Value : sig ... end
standard SQL value injections (usable from user code, in pa_macaque value antiquotations)
sequence creation operators (usable from user code, in pa_descr sequence expressions)
module Sequence : sig ... end
module Op : sig ... end
standard SQL operators (usable from user code, in pa_comp expressions)
module View : sig ... end
standard view injections (in pa_comp, view antiquotations)
module ViewOp : sig ... end
standard view operators
val break : _ t -> Sql_internals.value
val break_view : (_, _) view -> Sql_internals.view
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>