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: Josh Burdick <jburdick@g...>
Subject: Re: [Caml-list] PostgreSQL-OCaml 1.0.1
Richard Jones wrote:

>>From my point of view (mod_caml depends on the postgres support) it
>would be nice to have just one library to work with.  Perhaps combine
>the best features of both into a single release?
>  
>
   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.  There could be a signature (perhaps called "DBI" to appeal to 
Perl people , and structs Postgres, MySQL, Oracle, etc., which implement 
this.
   Different databases have varying levels of standards-conformance, of 
course, and there's all sorts of variation between databases, so I 
wouldn't expect one to be able to take one OCaml program written with 
this interface, and blithely switch databases, especially for 
complicated stuff.  But you should be able to write simple "select * 
from customers"-type queries, against any database, without totally 
re-working your OCaml code.
   Database independence seems like a good goal to move towards.  If 
there's going to be potential interface changes anyways, now might be a 
good time to plan a more general interface.
   (I used the old Postgres module, and it worked well.)

   Josh Burdick
   jburdick@gradient.cis.upenn.edu

>Rich.
>
>  
>


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