Re: "dselect" replacement team
On Sat, 12 Apr 1997, Jason Gunthorpe wrote:
> > The "first tier" is called the key, and the "second tier" is called the
> > data, generally, and they are linked (that's in libdb's BTREE format,
> > anyway).
> > So, if you want to list all the packages, you just go through the
> > database, reading all the keys.
> > If you want the info, you look it up by the package.
> Sorry, I wasn't clear, there are two sets of the key/data pairs, one on a
> global level, the key is the package name the data is some kind of package
> Inside the data element there is a second database of key/string pairs
> which is the 'second tier' I was meaning.
> So you have Package\Tag=Value
One of the major advantages of libdb is that you are not limited to only
strings in your database. All it gives you is a pointer to a bit of
memory, and the size of that - what you put in that can be whatever you
like, e.g. a struct. But you have to remember to set the size right, so
that the whole thing gets written out.
Tom Lees <email@example.com> http://www.lpsg.demon.co.uk/
PGP ID 87D4D065, fingerprint 2A 66 86 9D 02 4D A6 1E B8 A2 17 9D 4F 9B 89 D6
finger firstname.lastname@example.org for full public key (also available on keyservers)