all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jason haslup <jason@haslup.com>
Subject: Re: Building a database interface in Emacs
Date: Wed, 20 Dec 2006 19:49:10 +0000 (UTC)	[thread overview]
Message-ID: <loom.20061220T203208-913@post.gmane.org> (raw)
In-Reply-To: uvek6zr8e.fsf@gmail.com

Mathias Dahl <brakjoller <at> gmail.com> writes:

> 
> I have been looking into using Emacs for doing queries etc against an
> Oracle database, for certain work purposes. I use the nice functions
...
> What would be the best approach for doing this? First I tried adding
> something on top of sql.el and comint.el but it seemed overkill as I
> am not interested in a command line interface. My current plan is to
> use `start-process' to start sqlplus in a process, and to send input
> and parse the output I get back from that process.
> 
> Is there any smarter way of doing it?

I did something using comint's filter functions, but it requires having a *SQL*
buffer open to the database you're interested in:

  http://www.haslup.com/index.cgi/emacs/2006/12/20/

I'm not too familiar with sqlplus, but I know the mysql client has a raw mode
and also an XML mode for queries that might help in looking for the end of a
query's results.  Or, if sqlplus doesn't work, I wonder if a simple helper
client using oracle's libraries would be something you could use with
start-process.  Then you could have complete control over the output of the data?

jason

  parent reply	other threads:[~2006-12-20 19:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-20 12:28 Building a database interface in Emacs Mathias Dahl
2006-12-20 15:42 ` aartist
2006-12-20 16:02   ` Mathias Dahl
2006-12-20 16:49     ` Mathias Dahl
2006-12-20 16:59       ` aartist
2006-12-20 17:13         ` Mathias Dahl
2006-12-20 17:46       ` Lennart Borgman
     [not found]       ` <mailman.2154.1166636803.2155.help-gnu-emacs@gnu.org>
2006-12-20 17:51         ` Mathias Dahl
2006-12-20 20:23     ` Magnus Henoch
     [not found]     ` <mailman.2158.1166646507.2155.help-gnu-emacs@gnu.org>
2006-12-21  9:04       ` Mathias Dahl
2006-12-20 19:49 ` jason haslup [this message]
     [not found] ` <mailman.2157.1166644516.2155.help-gnu-emacs@gnu.org>
2006-12-21  9:03   ` Mathias Dahl
2006-12-21 16:42     ` Hadron Quark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20061220T203208-913@post.gmane.org \
    --to=jason@haslup.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.