Skip site navigation (1) Skip section navigation (2)

Re: [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL

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 (view raw or flat)
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

In response to

Responses

pgsql-interfaces by date

Next:From: Hugh LawsonDate: 1999-07-22 16:30:04
Subject: Re: [INTERFACES] Re: [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL
Previous:From: Lamar OwenDate: 1999-07-22 15:25:11
Subject: Re: [INTERFACES] invalid command name "pg_connect" on tcl/tk script

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group