package ppx_rapper

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.1.tar.gz
md5=4fc9713b494afc30e35b04ccde426c47
sha512=09d2f26f830416ddc5df6129bfe6e24db0cede076a41dbf33bcc4a3123a8b57250c18c9a6ac77f684f4debc6cda3b81c04cf6d50a8cbb2c1535597c6e8175989

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.