Add a db cursor abstraction and interfaces for using it
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 20 Apr 2011 10:52:41 +0000 (13:52 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 20 Apr 2011 11:04:17 +0000 (14:04 +0300)
commitfb548c0612c40502f668eca7b70b8447afccf6f1
treebb5f074bceaa0b29279b1574da2030f4ce35c7aa
parent9ae37ce58ae68dc502b7f2d018df45dd9884c695
Add a db cursor abstraction and interfaces for using it
- Callers are currently required to pass all sorts of unnecessary
  gunk to the cursor operations just for performance statistics
  etc, and the interface doesn't match the uses inside rpmdb.c
  very well. This adds a more "rpm-style" interface around the
  BDB API.
- Cursor open + close can only fail on invalid arguments (which would
  be programmer errors), and various conditions on replication which
  we dont care about. So we essentially ignore the errors, except
  for cursor open which will return NULL to indicate an error.
- As an intermediate step, these are just wrappers to the older
  dbiFoo interfaces to permit converting things to the new interfaces
  piece by piece.
lib/backend/db3.c
lib/backend/dbi.h