package macaque

  1. Overview
  2. Docs

Source file sql_base.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
(* macaque : sql_base.ml
    MaCaQue : Macros for Caml Queries
    Copyright (C) 2009 Gabriel Scherer, Jérôme Vouillon

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this library; see the file LICENSE.  If not, write to
    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*)

type 'a tuple = (string * 'a) list

type 'a result_parser = string array * int ref -> 'a

type untyped = Obj.t

let path_separator = "__"


type oid = PGOCaml.oid
and int16 = PGOCaml.int16
and bytea = PGOCaml.bytea
(* TODO ask PGOCaml mainstream for type aliases *)
and time = CalendarLib.Time.t
and date = CalendarLib.Date.t
and interval = CalendarLib.Calendar.Period.t
and timestamp = CalendarLib.Calendar.t 
and timestamptz = PGOCaml.timestamptz (* = CalendarLib.Calendar.t * CalendarLib.Time_Zone.t *)
and int32_array = PGOCaml.int32_array
OCaml

Innovation. Community. Security.