emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: andrea <andrea.crotti.0@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] Tables to DB
Date: Thu, 03 Dec 2009 08:43:15 -0700	[thread overview]
Message-ID: <yn44oo8kqr0.fsf@gmail.com> (raw)
In-Reply-To: <m1aay0uoyb.fsf@47-118.eduroam.rwth-aachen.de> (andrea's message of "Thu, 03 Dec 2009 15:11:56 +0100")

Org-babel has support for SQL, so I presume that you could use that as a
somewhat manual way to dump org-mode tables into sql tables.

Also, if you have a python tool which you are using for interaction with
sql tables, it may be easiest to use org-babel to convert your org-mode
tables into python arrays, then let python handle the rest of the
integration.

Best -- Eric

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?
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2009-12-03 15:43 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 ` Eric Schulte [this message]
2009-12-04 10:40   ` [babel] " andrea
2009-12-04 18:12 ` Dan Davison
2009-12-04 20:01 ` Sebastian Rose

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=yn44oo8kqr0.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --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).