Library
Module
Module type
Parameter
Class
Class type
Values representing types to pass to a statement, or to extract from a row
A representation of a type that returns 'res
. 'a
is typically a function type with the arguments one would expect, for example (int -> string -> 'res, 'res) t
would be used for a query that is parametrized by two values of type int and string respectively.
val int : int arg
val int64 : int64 arg
val float : float arg
val text : string arg
val blob : string arg
val any_str : string arg
Accepts Data.t.NULL
and Data.t.NONE
or 'a
.
val nil : ('res, 'res) t
0 type arguments
Right-associative chaining. int @> float @> nil
represents two arguments of type int
and float
respectively, and is the same as int @> (float @> nil)
.
Exactly two arguments of types 'a
and 'b
respectively.
Right-associative append. This is useful for long lists of types. (p2 int float) @>> (p1 text)
is the same as p3 int float text
, which is the same as int @> float @> text @> nil
.