emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jemarch@gnu.org (Jose E. Marchesi)
To: Michael Brand <michael.ch.brand@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [OT] recutils
Date: Sun, 05 Dec 2010 21:20:37 +0100	[thread overview]
Message-ID: <87y684vune.fsf@gnu.org> (raw)
In-Reply-To: <AANLkTikZ62bfvsnX-Sr9Qerr=SZfwLFdphkZ278Odnv4@mail.gmail.com> (Michael Brand's message of "Sun, 5 Dec 2010 19:59:56 +0100")


    
    On Sat, Dec 4, 2010 at 13:28, Jose E. Marchesi <jemarch@gnu.org> wrote:
    > But note that the "relational" characteristics in
    > recutils are not very sophisticated.
    >
    > The rule here is: if you need something more complex then you probably
    > should be using a real relational dbms instead :)
    
    Ok, maybe I expected a bit too much for the initial version 1.0. But
    is it already possible or planned to allow recsel deliver field values
    from two tables, joined together with a foreign key or what does the
    manual mean with "the ability of records to refer to other records
    (sort of foreign keys)"?

Right now the recutils use the information of the "foreign keys"
(compound fields) just to pick the type of the field in the "referenced"
record descriptor.

For the next version it is planned to support joins in recsel.  For
example, having a database like:

  %rec: Hacker
  %key: Name

  Name: Mr. foo

  %rec: Package

  Name: GNU foo
  Hacker:Name: Mr. foo

  Name: GNU bar
  Hacker:Name: Mr. foo

It will be possible to invoke recsel like:

  $ recsel -t Hacker -p Name,Package:Name foo.rec
  Name: Mr. Foobar
  Package:Name: GNU foo

  Name: Mr. Foobar
  Package:Name: GNU bar
    
-- 
Jose E. Marchesi    jemarch@gnu.org
GNU Project         http://www.gnu.org

  reply	other threads:[~2010-12-05 20:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03 21:16 [OT] recutils Jose E. Marchesi
2010-12-04  7:17 ` Michael Brand
2010-12-04  8:25   ` Russell Adams
2010-12-04 12:30     ` Jose E. Marchesi
2010-12-04 12:28   ` Jose E. Marchesi
2010-12-04 18:50     ` Russell Adams
2010-12-05 18:59     ` Michael Brand
2010-12-05 20:20       ` Jose E. Marchesi [this message]
2010-12-13 12:33     ` Jean-Marie Gaillourdet
2010-12-20 18:09       ` Michael Brand

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=87y684vune.fsf@gnu.org \
    --to=jemarch@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=michael.ch.brand@gmail.com \
    /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).