Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] PostgreSQL-OCaml 1.0.1
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Vitaly Lugovsky <vsl@o...>
Subject: Re: [Caml-list] PostgreSQL-OCaml 1.0.1

On Fri, 30 Jan 2004, Josh Burdick wrote:

>    If there's going to be a "new improved version", I think
> maybe it should work with multiple databases.  ODBC, JDBC, and
> DBI all attempt this.

 It was already discussed here. The conclusion was: BAD IDEA. No
way to work efficiently with different DBs using the same
approach. Btw., I don't have any problems providing support for
MySQL, PostgreSQL and Oracle from one OCaml application - but the
abstraction is on a higher level then JDBC-like interfaces
provides.

> "select * from customers"-type queries, against any database,
> without totally re-working your OCaml code.

 No way. Too much differences in the way how DBs returns the
query results (e.g., consider the postgresql asyncronous
messages). More layers converting values would just give much
more overhead, without any significiant advantages.


-------------------
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