package ppx_rapper

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.1.0.tar.gz
md5=6fc6320394f523374bf77660c4df1b8e
sha512=0ae7a5569754ad7f7ebeb44a47e7d96764a6e2f06c2cdfa774f04603f36cfba010aa50292e7467837c3acd975805f3a22f837f6051b2e5436f2a5f1f54f426a6

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.