From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea Subject: Tables in databases Date: Tue, 01 Dec 2009 10:31:46 +0100 Message-ID: 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 1NFP5o-0004Up-QE for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 04:32:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFP5j-0004TB-KQ for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 04:32:19 -0500 Received: from [199.232.76.173] (port=37795 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFP5j-0004T4-H3 for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 04:32:15 -0500 Received: from lo.gmane.org ([80.91.229.12]:36651) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFP5i-0007yz-CF for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 04:32:14 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NFP5e-00089e-HF for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 10:32:10 +0100 Received: from 47-118.eduroam.rwth-aachen.de ([134.61.47.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Dec 2009 10:32:10 +0100 Received: from andrea.crotti.0 by 47-118.eduroam.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Dec 2009 10:32:10 +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: emacs-orgmode@gnu.org 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?