Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Dbi: proposal #1
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe TROESTLER <debian00@t...>
Subject: Re: [Caml-list] Dbi: proposal #1
On Wed, 11 Jun 2003, "Nicolas Cannasse" <warplayer@free.fr> 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