From: Eric Marsden <emarsden@mail.dotcom.fr>
To: hglawson@nr.infi.net
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL
Date: 21 Jul 1999 16:18:20 +0200
Message-ID: <wzilncaytlf.fsf@mail.dotcom.fr> (raw)
References: <Pine.LNX.4.04.9907210818580.2373-100000@cumquat.fruit.com>
>>>>> "hl" == Hugh Lawson <hglawson@nr.infi.net> 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"))
<struct cl ...>
ELISP> (setq res (pg:exec conn "SELECT * from scshdemo WHERE a=42"))
<struct cl ...>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: emarsden@mail.dotcom.fr, hglawson@nr.infi.net
Subject: Re: [INTERFACES] [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL
In-Reply-To: <wzilncaytlf.fsf@mail.dotcom.fr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox