1 |
(* Perl DBD 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_perl.mli,v 1.2 2003/11/23 14:24:57 rwmj Exp $ |
19 |
*) |
20 |
|
21 |
(** Use Perl DBD (database drivers) with Dbi. |
22 |
* |
23 |
* This module lets you use any Perl DBD (database driver) with the |
24 |
* [Dbi]. You can use this as a stopgap until native OCaml support |
25 |
* is available. |
26 |
* |
27 |
* Please see {!Dbi} for main documentation. |
28 |
*) |
29 |
|
30 |
class connection : |
31 |
?host:string -> |
32 |
?port:string -> |
33 |
?user:string -> |
34 |
?password:string -> |
35 |
string -> |
36 |
object |
37 |
method close : unit |
38 |
method closed : bool |
39 |
method commit : unit |
40 |
method database : string |
41 |
method database_type : string |
42 |
method debug : bool |
43 |
method ex : string -> Dbi.arg_t list -> Dbi.statement |
44 |
method host : string option |
45 |
method id : int |
46 |
method password : string option |
47 |
method ping : bool |
48 |
method port : string option |
49 |
method prepare : string -> Dbi.statement |
50 |
method prepare_cached : string -> Dbi.statement |
51 |
method register_postrollback : (unit -> unit) -> Dbi.postrollback_handle |
52 |
method register_precommit : (unit -> unit) -> Dbi.precommit_handle |
53 |
method rollback : unit |
54 |
method set_debug : bool -> unit |
55 |
method unregister_postrollback : Dbi.postrollback_handle -> unit |
56 |
method unregister_precommit : Dbi.precommit_handle -> unit |
57 |
method user : string option |
58 |
end |