package ppx_rapper

  1. Overview
  2. Docs
Syntax extension for Caqti/PostgreSQL queries

Install

Dune Dependency

Authors

Maintainers

Sources

1.1.1.tar.gz
md5=18a069630784aa6ad83871c02b32a3e0
sha512=6a8ec278d5529376e1f2ea0e594806971b4028e4ce1d2f79a4acd65e07d84c890b2c64f245483041b78a94381a6453ffba84592ef9ef1c41ffbf65f4c1e35857

doc/src/ppx_rapper.runtime/ppx_rapper_runtime.ml.html

Source file ppx_rapper_runtime.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
module type CUSTOM = sig
  type t

  val t : t Caqti_type.t
end

module Dynparam = struct
  type t = Pack : 'a Caqti_type.t * 'a -> t

  let empty = Pack (Caqti_type.unit, ())

  let add t x (Pack (t', x')) = Pack (Caqti_type.tup2 t' t, (x', x))
end

OCaml

Innovation. Community. Security.