pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eric Marsden <emarsden@mail.dotcom.fr>
To: pgsql-interfaces@postgreSQL.org
Subject: [ANN] pg.el -- Emacs Lisp interface for PostgreSQL
Date: 24 Mar 1999 10:48:42 +0100
Message-ID: <wziu2vbi5fp.fsf@mail.dotcom.fr> (raw)

pg.el is a socket-level interface to PostgreSQL for GNU 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,
nor the v6.4 protocol.

The code (version 0.1) is available under GPL from

   <URL:http://www.chez.com/emarsden/downloads/pg.el;


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
emarsden @ mail.dotcom.fr
It's elephants all the way down



Message-ID: <wziu2vbi5fp.fsf@mail.dotcom.fr>
Permalink:  ../wziu2vbi5fp.fsf@mail.dotcom.fr/
Also on:    postgresql.org/message-id/wziu2vbi5fp.fsf@mail.dotcom.fr

 · 

reply

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
  Subject: Re: [ANN] pg.el -- Emacs Lisp interface for PostgreSQL
  In-Reply-To: <wziu2vbi5fp.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