From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA09762; Fri, 30 Jan 2004 11:47:18 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA10291 for ; Fri, 30 Jan 2004 11:47:17 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id i0UAlGP29920 for ; Fri, 30 Jan 2004 11:47:16 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AmWB9-0006RY-00; Fri, 30 Jan 2004 10:47:15 +0000 Date: Fri, 30 Jan 2004 10:47:15 +0000 To: Benjamin Geer Cc: Inria Ocaml Mailing List Subject: Re: [Caml-list] PostgreSQL-OCaml 1.0.1 Message-ID: <20040130104715.GA24501@redhat.com> References: <20040128232131.GA22126@fichte.ai.univie.ac.at> <20040129200653.GA14321@redhat.com> <4019F0B1.6050204@gradient.cis.upenn.edu> <401A30ED.6090007@socialtools.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <401A30ED.6090007@socialtools.net> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 1.0.1:01 dbi:99 dbi:99 mli:01 mli:01 postgres:01 postgres:01 runtime:01 baretta:01 camlp:01 ltd:98 caml:01 garbage:01 alex:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk If people think that the mod_caml DBI approach is the right one (and it may not be, although it certainly Works For Us), then I could spin this off into a separate package to make it easier to install. This is dbi.mli: http://savannah.nongnu.org/cgi-bin/viewcvs/modcaml/modcaml/dbi.mli?rev=HEAD&content-type=text/vnd.viewcvs-markup This is dbi_postgres.mli, which is the driver we use all the time in production at Merjis, hence the most stable / developed: http://savannah.nongnu.org/cgi-bin/viewcvs/modcaml/modcaml/dbi_postgres.mli?rev=HEAD&content-type=text/vnd.viewcvs-markup This is the driver for Perl DBDs: http://savannah.nongnu.org/cgi-bin/viewcvs/modcaml/modcaml/dbi_perl.mli?rev=HEAD&content-type=text/vnd.viewcvs-markup The interface is designed to make it quick to access databases, in the sense that you write the minimum code necessary. It's not type safe, in the sense that if you write garbage SQL, it won't be detected until runtime. Alex Baretta is, I believe, pursuing an alternative approach using Camlp4 which is supposed to be type safe. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment http://www.YouUnlimited.co.uk/ - management courses ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners