/[modcaml]/modcaml/dbi_postgres.mli
ViewVC logotype

Contents of /modcaml/dbi_postgres.mli

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Feb 13 13:43:53 2004 UTC (20 years, 2 months ago) by rwmj
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Removed DBI support (moved into separate package).

1 (* PostgreSQL database interface for mod_caml programs.
2 * Copyright (C) 2003 Merjis Ltd.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the Free
16 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 *
18 * $Id: dbi_postgres.mli,v 1.7 2003/11/23 14:24:57 rwmj Exp $
19 *)
20
21 (** Please see {!Dbi} for main documentation. *)
22
23 val string_of_timestamp : Dbi.timestamp_t -> string
24 (** Convert a timestamp into a string. *)
25 val timestamp_of_string : string -> Dbi.timestamp_t
26 (** Convert a string into a timestamp. *)
27 val string_of_interval : Dbi.interval_t -> string
28 (** Convert an interval into a string. *)
29 val interval_of_string : string -> Dbi.interval_t
30 (** Convert a string into an interval. *)
31
32 class connection :
33 ?host:string ->
34 ?port:string ->
35 ?user:string ->
36 ?password:string ->
37 string ->
38 object
39 method close : unit
40 method closed : bool
41 method commit : unit
42 method database : string
43 method database_type : string
44 method debug : bool
45 method ex : string -> Dbi.arg_t list -> Dbi.statement
46 method host : string option
47 method id : int
48 method password : string option
49 method ping : bool
50 method port : string option
51 method prepare : string -> Dbi.statement
52 method prepare_cached : string -> Dbi.statement
53 method register_postrollback : (unit -> unit) -> Dbi.postrollback_handle
54 method register_precommit : (unit -> unit) -> Dbi.precommit_handle
55 method rollback : unit
56 method set_debug : bool -> unit
57 method unregister_postrollback : Dbi.postrollback_handle -> unit
58 method unregister_precommit : Dbi.precommit_handle -> unit
59 method user : string option
60 end

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26