From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: sqlite3 in org-babel Date: Sat, 18 Feb 2012 09:31:30 -0700 Message-ID: <877gzkrtlp.fsf@gmx.com> References: <87r4y2e0qh.wl%n142857@gmail.com> <87d39gunxk.fsf@gmx.com> <871upu4bhu.wl%n142857@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RynCH-0005p1-6d for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 11:31:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RynCF-00054b-RE for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 11:31:41 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:37794) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RynCF-00054V-GA for emacs-orgmode@gnu.org; Sat, 18 Feb 2012 11:31:39 -0500 In-Reply-To: <871upu4bhu.wl%n142857@gmail.com> (Daniel Clemente's message of "Fri, 17 Feb 2012 00:14:21 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Clemente Cc: org-mode Mailinglist Daniel Clemente writes: >> Have you tried using a sqlite code block? See ob-sqlite.el > > I didn't notice there were both ob-sql and ob-sqlite. It would be > useful to mention sqlite inside ob-sql. Done. > > Perhaps they should be united? > I believe there were reasons for keeping them separate. I'd rather not combine them without a full overview of both code files. > > > I still prefer ob-sql for sqlite because it lets me pass the > parameter ":init /dev/null". That makes it NOT load my ~/.sqliterc > (where I have a very verbose ".tables"). ob-sqlite does not have > ":init" and therefore always stuffs that output into the results. > >From looking at the man page of sqlite, it seems you can do the same with ob-sqlite. Simply pass "--init /dev/null" to the sqlite command. This could be done e.g. with something like (org-babel-sqlite3-command "sqlite3 --init /dev/null") Best, > > > >> >> Daniel Clemente writes: >> >> > Hi, >> > org-babel works well with sqlite3 if you add this (which I propose for inclusion): >> > > -- Eric Schulte http://cs.unm.edu/~eschulte/