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 UAA31898; Mon, 1 Mar 2004 20:20:29 +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 UAA31887 for ; Mon, 1 Mar 2004 20:20:27 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i21JKQae018975 for ; Mon, 1 Mar 2004 20:20:27 +0100 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AxsxO-0002JQ-00; Mon, 01 Mar 2004 19:20:02 +0000 Date: Mon, 1 Mar 2004 19:20:02 +0000 To: Christophe TROESTLER Cc: caml-list@inria.fr, Jeremy Chatfield Subject: [Caml-list] Re: OcamlDBI Message-ID: <20040301192002.GB8837@redhat.com> References: <20040229210015.GA31888@redhat.com> <20040301.031021.51509654.debian00@tiscali.be> <20040301092842.GC7705@redhat.com> <20040301.195138.25223321.Christophe.Troestler@umh.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040301.195138.25223321.Christophe.Troestler@umh.ac.be> User-Agent: Mutt/1.5.4i From: Richard Jones X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; 2004:99 troestler:01 decoding:01 camlp:01 dbi:99 ltd:98 jeremy:01 christophe:01 ocaml:01 null:01 string:03 wrote:03 interface:03 addresses:96 types:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Keywords: X-UID: 12 On Mon, Mar 01, 2004 at 07:51:38PM +0100, Christophe TROESTLER wrote: > Well, you know much more about databases than I do but it seems to me > that the following functions do the job: for PostgreSQL, [...] OK, this is interesting and I think we should do it. It requires coordination because we have a metric ton of code here which uses the current access method, and that would have to all be changed. I'll see if I can schedule some time to do this with my manager. I also want to be more sure about exactly how the code is going to work, so I'll probably want to build a few prototypes and share them with you - I'm still not 100% sure I understand how the `Null stuff works. > Also it would be nice to be able to declare in the code new conversion > functions (e.g. to use `Point(x,y)) -- but the decoding part is tricky > and probably impossible without Camlp4. Have you had a need for such > thing in your applications? In any case, one should maybe add a > [`Unknown of string] to deal with new types...??? We use lots of odd PostgreSQL types, eg. IP addresses ... but generally insert and select these as strings and do any conversion necessary ourselves. Getting the basics working is most important. Jeremy: It looks like we have a chance to get ocamldbi accepted as the standard DBI interface for OCaml, if we schedule some time to make a few changes. I guess we're looking at 1-2 days work tops. What do you think? 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