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 UAA00496; Thu, 12 Jun 2003 20:48:50 +0200 (MET DST) 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 UAA00640 for ; Thu, 12 Jun 2003 20:48:48 +0200 (MET DST) Received: from abel.swapping.umh.ac.be (nat.umh.ac.be [193.190.193.1]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h5CImlH18678 for ; Thu, 12 Jun 2003 20:48:47 +0200 (MET DST) Received: from abel.swapping.umh.ac.be ([127.0.0.1] helo=localhost ident=trch) by abel.swapping.umh.ac.be with esmtp (Exim 3.36 #1 (Debian)) id 19QX9o-0005gK-00; Thu, 12 Jun 2003 20:50:44 +0200 Date: Thu, 12 Jun 2003 20:50:44 +0200 (CEST) Message-Id: <20030612.205044.58804378.debian00@tiscali.be> To: warplayer@free.fr Cc: caml-list@inria.fr Subject: Re: [Caml-list] Dbi: proposal #1 From: Christophe TROESTLER In-Reply-To: <007901c32fbe$11b6a4e0$2713f9ca@WARP> References: <20030610.221041.13383166.debian00@tiscali.be> <007901c32fbe$11b6a4e0$2713f9ca@WARP> Organization: None X-Spook: terrorist Albania Saddam Hussein red noise Panama AFSPC 22nd SAS Ceridian clandestine Ft. Bragg X-Mailer-URL: http://www.mew.org/ X-Operating-System: GNU/Linux (http://www.linux.org/) X-Blessing: Om Ah Hum Vajra Guru Pema Siddhi Hum X-Mailer: Mew version 3.3rc1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; troestler:01 tiscali:99 caml-list:01 dbi:99 cannasse:01 warplayer:01 runtime:01 chris:01 christophe:01 nicolas:01 objects:02 classes:03 wrote:03 dependent:03 interface:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 11 Jun 2003, "Nicolas Cannasse" wrote: > > > Here is the first proposal for a database independent interface (Dbi) > [...] > One question : why using classes ? To be able to write functions that are not dependent on a particular database. Imagine for example that the DB is chosen at runtime. With this approach, one has only to write conditional code to create the [connection] and [conversion] objects, the rest of the source applies to any DB. (Some more on this is the file RATIONALE that comes with the tarball.) Cheers, ChriS ------------------- 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