Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2004-01-30 (05:51)
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 
   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


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: