package ppx_rapper

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.0.tar.gz
md5=dc2eb982ca79c6b04ea7bdcb537ce373
sha512=e07bd351b54fffcd1b86de553b1b53a77606472da52da5bcf27d028fce7edd445811bb3c67d9df62afdda4c0e47486cadd8f8f8f85558c2620c959467e4fcedb

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.