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 KAA90393 for ; Wed, 21 Jul 1999 10:18:28 -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 QAA03117; Wed, 21 Jul 1999 16:18:20 +0200 (MET DST) Received: (from emarsden@localhost) by liszt.laas.fr (8.9.3/8.9.3) id QAA00860; Wed, 21 Jul 1999 16:18:21 +0200 (MET DST) Sender: emarsden@liszt.laas.fr To: hglawson@nr.infi.net Cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL References: 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 16:18:20 +0200 In-Reply-To: Hugh Lawson's message of Wed, 21 Jul 1999 08:27:48 -0400 (EDT) Message-ID: Lines: 32 X-Mailer: Gnus v5.3/Emacs 19.34 >>>>> "hl" == Hugh Lawson writes: hl> I am asking a dumb question here, so please be patient. Does hl> this mean that given pg.el you have to write elisp functions in hl> order to make use of it? hl> hl> Is the "defun demo()" above an example of such a function? If I hl> understand correct, to use pg.el, I would write an elisp function in hl> emacs and then evaluate it. Have I got this right? Hi Hugh, That's right. demo is an example of the type of elisp a programmer would write to access PostgreSQL from Emacs. You can also play around with it interactively: ELISP> (setq conn (pg:connect "template1" "postgres" "postgres")) ELISP> (setq res (pg:exec conn "SELECT * from scshdemo WHERE a=42")) ELISP> (pg:result res :status) "SELECT" etc I intend to get together with someone else who has written some table browsing stuff for Emacs to produce a browsing interface to PostgreSQL for the end user, but I haven't had time yet. -- Eric Marsden It's elephants all the way down