emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: andrea <andrea.crotti.0@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Tables to DB
Date: Fri, 04 Dec 2009 21:01:00 +0100	[thread overview]
Message-ID: <87r5rao6f7.fsf@gmx.de> (raw)
In-Reply-To: <m1aay0uoyb.fsf@47-118.eduroam.rwth-aachen.de> (andrea's message of "Thu, 03 Dec 2009 15:11:56 +0100")

andrea <andrea.crotti.0@gmail.com> 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

      parent reply	other threads:[~2009-12-04 20:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-03 14:11 Tables to DB andrea
2009-12-03 15:43 ` [babel] " Eric Schulte
2009-12-04 10:40   ` andrea
2009-12-04 18:12 ` Dan Davison
2009-12-04 20:01 ` Sebastian Rose [this message]

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.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5rao6f7.fsf@gmx.de \
    --to=sebastian_rose@gmx.de \
    --cc=andrea.crotti.0@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).