RPM Community Forums

Mailing List Message of <rpm-devel>

Re: FYI: migrating the RPM DB between Berkeley-DB and SQLite

From: Ralf S. Engelschall <rse+rpm-devel@rpm5.org>
Date: Thu 28 Jun 2007 - 18:30:33 CEST
Message-ID: <20070628163033.GA96323@engelschall.com>
On Thu, Jun 28, 2007, Mark Hatle wrote:

> I'd have to double check this in the code, but if the __dbabi is "0" (or
> maybe it was -1), rpm will work w/ both sqlite and db databases..
> basically it'll try to open it as one, if it can't it'll fall back to
> the other format.  (I don't remember the order it looks in.)
> [...]

Yes, according to the code it looks that if __dbapi is set to -1 is sets
it to 5 and decrements to 1 until it finds an implementation. So SQLite
would be preferred here and if not found it would use Berkeley-DB.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com
Received on Thu Jun 28 18:40:33 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.