From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Tables to DB Date: Fri, 04 Dec 2009 21:01:00 +0100 Message-ID: <87r5rao6f7.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGeL0-00073y-CW for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 15:01:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGeKv-0006tf-Fq for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 15:01:09 -0500 Received: from [199.232.76.173] (port=55492 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGeKv-0006tL-BR for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 15:01:05 -0500 Received: from mail.gmx.net ([213.165.64.20]:54568) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NGeKu-0006Sf-Pu for emacs-orgmode@gnu.org; Fri, 04 Dec 2009 15:01:05 -0500 In-Reply-To: (andrea's message of "Thu, 03 Dec 2009 15:11:56 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: andrea Cc: emacs-orgmode@gnu.org andrea writes: > Org tables are great but for visualization and querying maybe databases > are better, for example sqlite for small amounts of data is very nice > and powerful. > > I found this > http://orgmode.org/worg/org-tutorials/multitarget-tables.php which I > haven't tried yet but looks nice. > > I would like to have an automatic way to automatically fill some > database tables from orgmode tables, done maybe automatically when the > file is saved. > So the hook should: > - check for tables with #+ORGTBL line above > - store the data on the right sqlite table > > Rewrite completely the table every time is not a big problem since the > amount of data is really not big. > > Given that I will be able to do nice things with python-sqlite and also > finally replace this > http://alexandria.rubyforge.org/ > for book management > > Anyone is already doing something like that? > In SQL-mode, one can turn on the `electric semilcolon' to send queries to a database. Since this is part of emacs, why not try to use it? Maybe this could be used from Org-mode, too? Sebastian