[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-recutils] Deprecate recinf ?
From: |
John Darrington |
Subject: |
Re: [bug-recutils] Deprecate recinf ? |
Date: |
Thu, 9 Aug 2012 08:51:07 +0000 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Aug 09, 2012 at 10:31:51AM +0200, Micha?? Mas??owski wrote:
> It seems to me, that recinf is almost redundant.
>
> The few things it can do, that recsel cannot could be quite easily
> fixed I think.
I haven't thought that recsel can be used for it (I use it to access
records, not record set data like descriptors). SQL systems have
separate commands to show the table schemas, recinf might have a similar
purpose.
the SQL language itself has a different syntax, but (at least in the case of
Postgres) there is no fundamental internal difference between the data and the
meta-data.
Both tools have largely different implementation and recinf could be
easily extended to use an index file without reading any non-descriptor
records from the recfile (recsel would need much special-casing to not
do a query and use the same code as recinf).
I'm not familiar with the code, but aren't descriptors just a record set?
So one could allow the descriptors to be retrieved with a call like
recsel --type=% <file>
or similar.
... just an idea ...
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.
signature.asc
Description: Digital signature