| From: | Eric Marsden <emarsden(at)mail(dot)dotcom(dot)fr> |
|---|---|
| To: | pgsql-interfaces(at)postgreSQL(dot)org |
| Subject: | Re: [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL |
| Date: | 1999-07-22 15:28:35 |
| Message-ID: | wzi673c900s.fsf@mail.dotcom.fr |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
>>>>> "hl" == Hugh Lawson <hglawson(at)nr(dot)infi(dot)net> writes:
ecm> ELISP> (setq conn (pg:connect "template1" "postgres" "postgres"))
ecm> >> <struct cl ...>
ecm> ELISP> (setq res (pg:exec conn "SELECT * from scshdemo WHERE a=42"))
ecm> >> <struct cl ...>
ecm> ELISP> (pg:result res :status)
ecm> >> "SELECT"
hl> I can't get the hang of doing this. How do you get the ELISP>
hl> prompt? And what exactly do you type?
hl>
hl> I have succeeded at making the example function work properly.
The "ELISP>" prompt is from typing `M-x ielm' in Emacs (I don't think
that XEmacs has anything like this: it's an inferior emacs-lisp). You
can also type in the sexps using the *scratch* buffer, or using `M-:'.
--
Eric Marsden
It's elephants all the way down
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hugh Lawson | 1999-07-22 16:30:04 | Re: [INTERFACES] Re: [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL |
| Previous Message | Lamar Owen | 1999-07-22 15:25:11 | Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script |