Caqti_platform.Request_utilsSourceInternal request-related utilities.
linear_param_length templ is the number of linear parameters expected by a query represented by templ.
val linear_param_order :
?env:(string -> Caqti_query.t) ->
Caqti_query.t ->
int list list * linear_param listlinear_param_order templ describes the parameter bindings expected for templ after linearizing parameters and lifting quoted strings out of the query:
i is a list of linear parameter positions to which to bind the ith incoming parameter.Linear_param (i, t, v) where i is the position of the linear parameter taking the place of a embedded value, t is its field type, and v is the value itself.All positions are zero-based.
linear_query_string templ is templ where "?" is substituted for parameters and quoted strings.
type 'a field_encoder = {write_value : 'b. uri:Uri.t -> 'b Caqti_type.Field.t -> 'b -> 'a -> 'a;write_null : 'b. uri:Uri.t -> 'b Caqti_type.Field.t -> 'a -> 'a;} constraint 'e = [> `Encode_rejected of Caqti_error.coding_error ]type 'a field_decoder = {read_value : 'b. uri:Uri.t -> 'b Caqti_type.Field.t -> 'a -> 'b * 'a;skip_null : int -> 'a -> 'a option;} constraint 'e = [> `Decode_rejected of Caqti_error.coding_error ]