[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "dselect" replacement team

On Sat, 12 Apr 1997, Tom Lees wrote:

> On Fri, 11 Apr 1997, Jason Gunthorpe wrote:
> > The ideal database for dpkg data is a multi-teired thing (I'm not a dbase
> > expert so excuse the terminology ;>) We need a first teir that has a list
> > of all the packages and a second tier that has each of the fields in the
> > control file. Each package has about 8 fields that need to be stored so we
> > might be able to use some kind of simple binary structure inside a larger
> > database.
> 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


Reply to: