emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: WISH: SQL on org-mode tables
Date: Wed, 21 Aug 2013 08:29:34 +0800	[thread overview]
Message-ID: <87d2p76g41.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 5213BECB.9090204@ihm.name

Marc Ihm <marc@ihm.name> writes:

> Yes, would like this too !
> (But do not know, how to achieve this ...)
>
> I think that simplifying the task of storing data in org-tables would allow
> many interesting org-applications to be implemented more easily.
>
> And thanks for pointing at cvsql;
> will have a look.
>
> best regards,
> Marc
>
> Am 18.08.2013 16:06, schrieb Johan W. Klüwer:
>> I wish it were possible to execute SQL on tables in org-mode
>> buffers. Filtering rows and columns, joining values across named
>> tables, and so forth could be done with SQL in the org-table SEND
>> clauses.

I tend to think that the solution here involves using the right tools
for the right job. Not everything has to be in Org mode! (Though I feel
a little hypocritical claiming that.) It works so well with external
tools, why not use them?

My rule of thumb is that once a table becomes more about _data storage_
than it does about _data display_ -- ie I'm unlikely to actually examine
or export the table contents -- I try to put it in an external database,
sqlite works just fine. Between orgtable-sqlinsert to go from org table
to database, and babel to query the database, all the tools are there.
Org is just "glue", which is something it does very well.

Eric

  reply	other threads:[~2013-08-21  0:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-18 14:06 WISH: SQL on org-mode tables Johan W. Klüwer
2013-08-20 19:08 ` Marc Ihm
2013-08-21  0:29   ` Eric Abrahamsen [this message]
2013-08-21  2:55 ` SAKURAI Masashi
2013-08-21  8:07   ` Johan W. Klüwer

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=87d2p76g41.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --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).