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 QAA17924; Wed, 1 Oct 2003 16:57:55 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA28235 for ; Wed, 1 Oct 2003 16:57:54 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h91Evr502872 for ; Wed, 1 Oct 2003 16:57:53 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1A4iQL-0000aN-00 for ; Wed, 01 Oct 2003 15:57:53 +0100 Date: Wed, 1 Oct 2003 15:57:52 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Printf question Message-ID: <20031001145752.GA1897@redhat.com> References: <1064927948.8999.18.camel@pelican> <200309302052.WAA26950@pauillac.inria.fr> <20031001.163955.29676500.debian00@tiscali.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031001.163955.29676500.debian00@tiscali.be> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 printf:01 troestler:01 outputs:01 dbi:99 dbi:99 mli:01 postgres:01 api:01 printf:01 camlp:01 freshmeat:01 vectors:01 hashes:01 funcs:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Oct 01, 2003 at 04:39:55PM +0200, Christophe TROESTLER wrote: > 1) Develop AST for SQL requests which would guarantee their internal > coherence (and also write a tool for each DB engine that, for a > given database, outputs a module (or so) to enable the checking of > the query against the DB types (1)). That's a huge amount of work, and you have to redo it for each DB engine. (Rather you than me is what I'm saying :-) If you're interested in my take on "DBI" have a look at the mod_caml CVS, eg: http://savannah.nongnu.org/cgi-bin/viewcvs/modcaml/modcaml/dbi.mli?rev=1.2&content-type=text/vnd.viewcvs-markup http://savannah.nongnu.org/cgi-bin/viewcvs/modcaml/modcaml/dbi_postgres.ml?rev=1.2&content-type=text/vnd.viewcvs-markup There's a PostgreSQL implementation of the API which mostly works. I'm afraid you may be disappointed that it doesn't do anything fancy with printf or camlp4 :-) Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. C2LIB is a library of basic Perl/STL-like types for C. Vectors, hashes, trees, string funcs, pool allocator: http://www.annexia.org/freeware/c2lib/ ------------------- 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