Received: from laas.laas.fr (root@laas.laas.fr [140.93.0.15]) by hub.org (8.9.2/8.9.1) with ESMTP id IAA76981 for ; Wed, 17 Feb 1999 08:17:20 -0500 (EST) (envelope-from emarsden@laas.fr) Received: from rossini.laas.fr (emarsden@rossini [140.93.0.47]) by laas.laas.fr (8.9.1a/8.9.1) with ESMTP id OAA00089 for ; Wed, 17 Feb 1999 14:17:16 +0100 (MET) Received: (from emarsden@localhost) by rossini.laas.fr (8.9.1a/8.9.1) id OAA07188; Wed, 17 Feb 1999 14:17:13 +0100 (MET) Sender: emarsden@rossini.laas.fr To: pgsql-interfaces@postgreSQL.org Subject: [ANN] Socket-level interface for scsh available Organization: LAAS-CNRS http://www.laas.fr/ MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Eric-Conspiracy: there is no conspiracy X-Attribution: ecm X-URL: http://www.chez.com/emarsden/ From: Eric Marsden Date: 17 Feb 1999 14:17:11 +0100 Message-ID: Lines: 35 X-Mailer: Gnus v5.3/Emacs 19.34 I have written a socket-level interface to PostgreSQL for scsh (a Scheme implementation with POSIX extensions, a module system, exception handling and other useful features for systems programming). The module is capable of type coercions from a range of SQL types to the equivalent Scheme type. It currently supports neither crypt or Kerberos authentication, nor large objects. Unfortunately I implemented the v6.3 protocol, but I will update it for v6.4 shortly. Please send bug reports, suggestions and questions to . This is version 0.1, the first release. The code is available under LGPL from Here is a taste of the API: (define (demo) (let* ((conn (pg:connect "template1" "postgres" "postgres")) (res (pg:exec conn "SELECT * from scshdemo WHERE a = 42"))) (format #t "status is ~s~%" (pg:result res 'status)) (format #t "metadata is ~s~%" (pg:result res 'attributes)) (format #t "data is ~s~%" (pg:result res 'tuples)) (pg:disconnect conn))) [More information about scsh at , and about Scheme at . I also have a version for CLISP, a space-efficient implementation of Common Lisp, in the works, and am thinking about a version for Emacs.] -- Eric Marsden emarsden @ mail.dotcom.fr It's elephants all the way down