package ppx_rapper

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.2.tar.gz
md5=fec301b4c23f0cd917ca8ff373b230ca
sha512=f85e5825e9d84c3f0f16a64124d469d12b081aa86855ec58de948194b9a02cd412003d44243305c17b9602f7268a2c7941ca708d8fe09e22696202202c2137d4

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.