help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building a database interface in Emacs


From: Magnus Henoch
Subject: Re: Building a database interface in Emacs
Date: Wed, 20 Dec 2006 21:23:33 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (berkeley-unix)

Mathias Dahl <brakjoller@gmail.com> writes:

> (defvar foo-output nil)
>
> (defun foo ()
>  (process-send-string process "blabla")
>  (setq foo-output nil)
>  (while (not foo-output)
>    (sleep-for 0 10))
>  (use-result))
>
> (defun foo-filter (proc string)
>  (setq foo-output string))
>
> There must be a neater way to do this, right?

Have you seen (info "(elisp) Transaction Queues") ?  If I understand
the interface of SQLPlus correctly, this is exactly what you want.

You might find pg.el (interface for postgresql) interesting:
http://www.online-marketwatch.com/pgel/pg.html

Magnus





reply via email to

[Prev in Thread] Current Thread [Next in Thread]