Received: from laas.laas.fr (root@laas.laas.fr [140.93.0.15]) by hub.org (8.9.3/8.9.3) with ESMTP id GAA43230 for ; Wed, 21 Jul 1999 06:35:58 -0400 (EDT) (envelope-from emarsden@laas.fr) Received: from liszt.laas.fr (liszt [140.93.21.56]) by laas.laas.fr (8.9.3/8.9.3) with ESMTP id MAA22679 for ; Wed, 21 Jul 1999 12:35:55 +0200 (MET DST) Received: (from emarsden@localhost) by liszt.laas.fr (8.9.3/8.9.3) id MAA00716; Wed, 21 Jul 1999 12:35:56 +0200 (MET DST) Sender: emarsden@liszt.laas.fr To: pgsql-interfaces@postgreSQL.org Subject: [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL 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: 21 Jul 1999 12:35:56 +0200 Message-ID: Lines: 40 X-Mailer: Gnus v5.3/Emacs 19.34 pg.el is a socket-level interface to PostgreSQL for emacs (text editor extraordinaire). The module is capable of type coercions from a range of SQL types to the equivalent Emacs Lisp type. It currently supports neither crypt or Kerberos authentication, nor large objects. The code (version 0.2) is available under GNU GPL from Changes since last release: * now works with XEmacs (tested with Emacs 19.34 & 20.2, and XEmacs 20.4) * added functions to provide database metainformation (list of databases, of tables, of columns) * arguments to `pg:result' are now :keywords * MULE-resistant * more self-testing code Please note that this is a programmer's API, and doesn't provide any form of user interface. Example: (defun demo () (interactive) (let* ((conn (pg:connect "template1" "postgres" "postgres")) (res (pg:exec conn "SELECT * from scshdemo WHERE a = 42"))) (message "status is %s" (pg:result res :status)) (message "metadata is %s" (pg:result res :attributes)) (message "data is %s" (pg:result res :tuples)) (pg:disconnect conn))) -- Eric Marsden It's elephants all the way down