From: jemarch@gnu.org (Jose E. Marchesi)
To: emacs-orgmode@gnu.org
Subject: Re: orgmode and a database
Date: Tue, 05 Apr 2016 15:12:12 +0200 [thread overview]
Message-ID: <87r3ek8aj7.fsf@gnu.org> (raw)
In-Reply-To: <871t6kl50k.fsf@mat.ucm.es> (Uwe Brauer's message of "Tue, 05 Apr 2016 10:32:59 +0000")
> I have been using recutils with orgmode for more than year - still
> learning of course. So far, my experience has been fine. I am still
> developing some sort of standard databases, e.g. one for contacts,
> another for finance type of records, etc.
Do you have some example or a pointer or so. I don't know even how to
start.
AFAIK you can read data from a recfile and generate org-mode tables
dynamically in at least two ways:
1) Using ob-rec.el (part of recutils)
#+begin_src rec :data mydata.rec :type milestone :fields ProjectID,Name
Year == 2014
#+end_src
2) Using babel and sh blocks (I found this example in [1])
):
#+begin_src sh :exports results :results output replace :results value table
recsel -t milestone -e "Year == 2014" -p 'ProjectID,Name' milestones.rec | rec2csv
#+end_src
In both cases evaluating these blocks with C-cC-c must give you a nice
table that then you can export to a report.
The recutils manual is available at the recutils webpage [2].
[1] https://www.reddit.com/r/emacs/comments/1u52eu/can_people_share_their_orgmode_workflows/
[2] http://www.gnu.org/software/recutils
next prev parent reply other threads:[~2016-04-05 13:04 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-04 19:46 orgmode and a database Uwe Brauer
2016-04-04 20:19 ` Ken Mankoff
2016-04-05 10:31 ` Uwe Brauer
2016-04-05 13:01 ` Russell Adams
2016-04-04 20:27 ` Charles Millar
2016-04-05 10:32 ` Uwe Brauer
2016-04-05 13:12 ` Jose E. Marchesi [this message]
2016-04-05 16:37 ` Uwe Brauer
2016-04-05 17:03 ` Jose E. Marchesi
2016-04-05 17:36 ` Uwe Brauer
2016-04-05 21:27 ` Uwe Brauer
2016-04-05 20:01 ` Charles Millar
2016-04-05 20:32 ` Charles Millar
2016-04-05 10:43 ` Colin Baxter
2016-04-05 11:41 ` Charles Millar
2016-04-05 13:04 ` Colin Baxter
2016-04-05 14:02 ` Charles Millar
2016-04-05 14:03 ` Eric S Fraga
2016-04-05 14:40 ` Jose E. Marchesi
2016-04-05 16:18 ` Eric S Fraga
2016-04-05 13:02 ` Jose E. Marchesi
2016-04-05 13:49 ` Colin Baxter
2016-04-05 13:49 ` Colin Baxter
2016-04-05 14:04 ` Jose E. Marchesi
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=87r3ek8aj7.fsf@gnu.org \
--to=jemarch@gnu.org \
--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).