From: Xavier Maillard <xma@gnu.org>
To: Kevin Rodgers <kevin.d.rodgers@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: comint or start-process
Date: Thu, 10 Dec 2009 13:00:39 +0100 [thread overview]
Message-ID: <200912101200.nBAC0dWn001131@fed.local> (raw)
In-Reply-To: <hfpo8g$9ue$1@ger.gmane.org> (message from Kevin Rodgers on Wed, 09 Dec 2009 20:00:35 -0700)
> My plans are quite simple:
>
> - connect to my db
> - execute queries
> - parse the output to retrieve my data
> - disconnect
>
> The retrieved data will be used later in my mode.
>
> Questions: do I really need to do something with start-process
> and friends or do you think I can hack around comint (and/or
> sql-sqlite) ?
I'd start with sql-sqlite: you should be able to get something working
pretty quickly, and if it turns out to have features that get in the way
you'll be familiar enough with it to drop down a level to comint.
Ok. I have tried to get something but failed:
(defun sqlite-connect (db)
(let ((sql-database db))
(sql-connect-sqlite)))
(sqlite-connect "/tmp/foo.db")
(with-current-buffer (process-buffer (get-process "SQL")))
(sql-send-string "select * from foo;"))
=>
No SQL process started.
M-x list-process:
Proc Status Buffer Tty Command
---- ------ ------ --- -------
SQL run *SQL* /dev/pts/2 sqlite /tmp/foot.db
What is the problem ?
Thank you
Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org
next prev parent reply other threads:[~2009-12-10 12:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-09 23:29 comint or start-process Xavier Maillard
2009-12-10 3:00 ` Kevin Rodgers
2009-12-10 7:29 ` Xavier Maillard
2009-12-10 12:00 ` Xavier Maillard [this message]
2009-12-11 3:58 ` Kevin Rodgers
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200912101200.nBAC0dWn001131@fed.local \
--to=xma@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=kevin.d.rodgers@gmail.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).