From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Goals for 0.4 Date: Sat, 31 Aug 2013 23:07:24 +0200 Message-ID: <87r4d9r2lv.fsf@gnu.org> References: <87vc2o4qwc.fsf@gnu.org> <87y57kljro.fsf@karetnikov.org> <87hae81uvo.fsf@gnu.org> <87bo4fcbcz.fsf@karetnikov.org> <878uzj6nev.fsf@gnu.org> <877gf1yftq.fsf@karetnikov.org> <87bo4dspl2.fsf@gnu.org> <87a9jxeh05.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFsTE-0003pu-Qa for guix-devel@gnu.org; Sat, 31 Aug 2013 17:12:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFsT6-0005Uu-6V for guix-devel@gnu.org; Sat, 31 Aug 2013 17:12:36 -0400 In-Reply-To: <87a9jxeh05.fsf@gnu.org> (Jose E. Marchesi's message of "Sat, 31 Aug 2013 22:34:50 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: "Jose E. Marchesi" Cc: guix-devel@gnu.org jemarch@gnu.org (Jose E. Marchesi) skribis: > I just realized that we can do even better: have --list-generations > output recutils-formatted data (using =E2=80=98object->fields=E2=80= =99). Then, if we do > it right, the output can just be piped to =E2=80=98recsel=E2=80=99 to= select entries of > a certain age, to display specific fields, etc. Like: >=20=20=20=20=20 > generation-number: 1 > date: 2013-05-07 >=20=20=20=20=20 > However, I don=E2=80=99t know exactly how to represent both the gener= ations and > the list of packages in each generation in a single recutils stream. >=20=20=20=20=20 > Jos=C3=A9, how can the relations between =E2=80=9Cgeneration=E2=80=9D= records and =E2=80=9Cpackage=E2=80=9D > records be expressed? > > You can have two record sets: one for generations, one for packages. A > foreign key can relate them. Something like this: Perfect, thanks! Ludo=E2=80=99.