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 NAA16790; Fri, 30 Jan 2004 13:30:36 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id NAA17328 for ; Fri, 30 Jan 2004 13:30:35 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id i0UCUYv28412 for ; Fri, 30 Jan 2004 13:30:35 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AmXn8-0007oP-00 for ; Fri, 30 Jan 2004 12:30:34 +0000 Date: Fri, 30 Jan 2004 12:30:34 +0000 Cc: caml-list@inria.fr Subject: Re: [Caml-list] PostgreSQL-OCaml 1.0.1 Message-ID: <20040130123034.GA29998@redhat.com> References: <20040130120206.GA28458@redhat.com> <401A4AD9.2060509@socialtools.net> <20040130122311.GA29288@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040130122311.GA29288@redhat.com> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 1.0.1:01 sth:99 sth:99 widgets:01 gui:01 footprints:01 giants:99 ltd:98 gtk:01 variable:03 iter:03 implement:05 stuff:05 investment:94 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Here's a few more examples I've culled from our code. We're doing some (I think) neat stuff here, eg. using sth#map and sth#iter to quickly iterate over the results from queries: http://www.annexia.org/tmp/dbi-ex2.txt ... combined with pre-prepared statements: http://www.annexia.org/tmp/dbi-ex3.txt And we have some neat code that lets you tie a variable to a particular field in the database, a kind of (primitive) persistence: http://www.annexia.org/tmp/dbi-ex4.txt We use this to tie Gtk widgets to database fields, using the transaction capabilities of the database to implement Save and Rollback operations in the GUI. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment If I have not seen as far as others, it is because I have been standing in the footprints of giants. -- from Usenet ------------------- 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