From: Chetan <Chetan.xspam@xspam.sbcglobal.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Using a command-line program (sqlite3) as a backend
Date: Tue, 24 Mar 2009 14:38:34 -0700 [thread overview]
Message-ID: <ud4c61u05.fsf@myhost.sbcglobal.net> (raw)
In-Reply-To: c1b2de51-71d1-447e-acdd-513973829fd7@p20g2000yqi.googlegroups.com
florian <lorian@fsavigny.de> writes:
> It seems to me I have a rather basic question:
>
> I would like to use an SQLite database, and be able to query and
> modify it from Elisp functions. It seems that nobody has written Elisp
> bindings for the SQLite library yet, and I am definitely not smart
> enough to do that myself.
>
> So I gather I will have to use SQLite's command-line interface,
> sqlite3. I don't see much of a problem in parsing the output (in fact,
> I've already written that), but I am wondering about the differences
> between running sqlite3 as a synchronous process for every query (in a
> one-shot fashion), and starting it up once, as an asynchronous
> process, and then having it linger in the background, sending it
> commands and parsing the output it returns as needed.
>
> To me, the synchronous method seems more robust, but I am wondering
> whether it will scale well (supposing I get fond of using the database
> and start to use it for more and more complex things). As to the
> asynchronous method, I seem to have heard that I/O via stdin and
> stdout is prone to, er, I don't know: hang? lock? I've forgotten, but
> I would much appreciate to be warned if that is the case.
>
> (I have tried to find hints in ispell.el (since that seems to be a
> similar situation), but only found out that it implements indeed
> both.)
>
> Can anybody offer me any advice here? Thanks so much!
>
> Florian
Doesn't it work from shell running in emacs?
next prev parent reply other threads:[~2009-03-24 21:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-24 21:18 Using a command-line program (sqlite3) as a backend florian
2009-03-24 21:38 ` Chetan [this message]
2009-03-25 22:53 ` florian
2009-03-25 23:03 ` Chetan
2009-03-25 23:16 ` florian
2009-03-26 6:00 ` Harald Hanche-Olsen
2009-03-25 1:03 ` Glenn Morris
2009-03-25 23:11 ` florian
2009-03-25 23:28 ` Glenn Morris
2009-03-28 13:17 ` Using a command-line program (sqlite3) as a backend:observations with start-process florian
2009-03-29 6:19 ` rustom
-- strict thread matches above, loose matches on Subject: below --
2009-03-26 23:25 Using a command-line program (sqlite3) as a backend Xavier Maillard
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=ud4c61u05.fsf@myhost.sbcglobal.net \
--to=chetan.xspam@xspam.sbcglobal.net \
--cc=help-gnu-emacs@gnu.org \
/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.