From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.help Subject: Re: two question about sql-mode Date: Fri, 08 Nov 2013 08:47:09 +0100 Organization: Gnus News User Services Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383897016 23705 80.91.229.3 (8 Nov 2013 07:50:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2013 07:50:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 08 08:50:23 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vegpf-0008Bv-Q2 for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Nov 2013 08:50:19 +0100 Original-Received: from localhost ([::1]:44161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vegpf-00072K-AO for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Nov 2013 02:50:19 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!quimby.gnus.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 178-83-163-103.dynamic.hispeed.ch Original-X-Trace: quimby.gnus.org 1383896830 8359 178.83.163.103 (8 Nov 2013 07:47:10 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Fri, 8 Nov 2013 07:47:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:qh4cutGLzgssKYkGrRM/uGfozFA= Original-Xref: usenet.stanford.edu gnu.emacs.help:202128 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94399 Archived-At: Luca Ferrari writes: > I've two questions about the sql mode. > The first one is that onn my linux box I've Oracle SQL Developer, but > not sqlplus, and when I try to connect to an oracle database but of > course I got a "no sqlplus found" error, and therefore I would like to > know if it is possible to use the sqldeveloper as intermediate library > to connect thru Emacs, and if someone can point me to the right > configuration. Looking at the docs, it seems that SQL Developer has a GUI. SQL Mode, like all inferior modes, needs to communicate with the subprocess using stdin and stdout. I assume this will not work. http://docs.oracle.com/cd/E35137_01/appdev.32/e35117/intro.htm#CEGGHEFC > The second is about PostgreSQL: if I get it right it seems that C-c > C-c (send-paragraph) works only for the sqli buffer, that is for > Oracle. Is there any way to use something similar via libpq? The same applies here. SQL Mode uses stdin and stdout to communicate. Using a vendor-specific library would require a totally different approach. There is an alternative, however: http://www.emacswiki.org/emacs/PostgreSQL has "Code by EricMarsden for a socket-level elisp interface to PostgreSQL."