[Rpm-maint] [rpm-software-management/rpm] Push some add/del rpmdb logic deeper into backends (#904)

Panu Matilainen notifications at github.com
Thu Oct 17 11:02:55 UTC 2019


This is early steps towards uprooting the internal db API from its Berkeley DB origins - what makes sense with BDB/LMDB can be a huge hindrance with other types of backends.

The general plan is towards eliminating the generic, vague cursor object from the internal API and replace with iterator(s) on the backend level, and pushing operations further into the backend. 
This is only an RFC until the sqlite backend (#899) is merged (and will obviously need to be updated after that)
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/904

-- Commit Summary --

  * Assimilate pkgdbNew() into pkgdbPut() interface
  * Push rpmdb index put/del deeper into the backend

-- File Changes --

    M lib/backend/db3.c (43)
    M lib/backend/dbi.c (15)
    M lib/backend/dbi.h (25)
    M lib/backend/dummydb.c (12)
    M lib/backend/lmdb.c (47)
    M lib/backend/ndb/glue.c (39)
    M lib/rpmdb.c (33)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/904.patch
https://github.com/rpm-software-management/rpm/pull/904.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/904
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191017/cb634495/attachment.html>


More information about the Rpm-maint mailing list