Files | |
file | rpmlib.h |
file | rpmdb.c |
file | rpmdb.h |
Access RPM indices using Berkeley DB interface(s). | |
Data Structures | |
struct | dbiHStats_s |
Hash database statistics. More... | |
struct | dbiBStats_s |
B-tree database statistics. More... | |
struct | _dbiIndexItem |
A single item from an index database (i.e. More... | |
struct | _dbiIndexSet |
Items retrieved from the index database. More... | |
struct | _dbiVec |
Private methods for accessing an index database. More... | |
struct | _dbiIndex |
Describes an index database (implemented on Berkeley db3 functionality). More... | |
Functions | |
dbiIndex | dbiOpen (rpmdb db, int rpmtag, unsigned int flags) |
Return handle for an index database. | |
int | dbiCopen (dbiIndex dbi, void **dbcp, unsigned int flags) |
int | dbiCclose (dbiIndex dbi, void *dbcursor, unsigned int flags) |
int | dbiDel (dbiIndex dbi, void *dbcursor, const void *keyp, size_t keylen, unsigned int flags) |
Delete (key,data) pair(s) from index database. | |
int | dbiGet (dbiIndex dbi, void *dbcursor, void **keypp, size_t *keylenp, void **datapp, size_t *datalenp, unsigned int flags) |
Retrieve (key,data) pair from index database. | |
int | dbiPut (dbiIndex dbi, void *dbcursor, const void *keyp, size_t keylen, const void *datap, size_t datalen, unsigned int flags) |
Store (key,data) pair in index database. | |
int | dbiCount (dbiIndex dbi, void *dbcursor, unsigned int *countp, unsigned int flags) |
Retrieve count of (possible) duplicate items. | |
int | dbiVerify (dbiIndex dbi, unsigned int flags) |
Verify (and close) index database. | |
int | dbiClose (dbiIndex dbi, unsigned int flags) |
Close index database. | |
int | dbiSync (dbiIndex dbi, unsigned int flags) |
Flush pending operations to disk. | |
int | dbiByteSwapped (dbiIndex dbi) |
Is database byte swapped? | |
dbiIndexSet | dbiFreeIndexSet (dbiIndexSet set) |
Destroy set of index database items. | |
unsigned int | dbiIndexSetCount (dbiIndexSet set) |
Count items in index database set. | |
unsigned int | dbiIndexRecordOffset (dbiIndexSet set, int recno) |
Return record offset of header from element in index database set. | |
unsigned int | dbiIndexRecordFileNumber (dbiIndexSet set, int recno) |
Return file index from element in index database set. | |
Variables | |
int(* | _dbiVec::open )(rpmdb rpmdb, int rpmtag, dbiIndex *dbip) |
Return handle for an index database. | |
int(* | _dbiVec::close )(dbiIndex dbi, unsigned int flags) |
Close index database, and destroy database handle. | |
int(* | _dbiVec::sync )(dbiIndex dbi, unsigned int flags) |
Flush pending operations to disk. | |
int(* | _dbiVec::copen )(dbiIndex dbi, void **dbcp, unsigned int flags) |
Open database cursor. | |
int(* | _dbiVec::cclose )(dbiIndex dbi, void *dbcursor, unsigned int flags) |
Close database cursor. | |
int(* | _dbiVec::cdel )(dbiIndex dbi, void *dbcursor, const void *keyp, size_t keylen, unsigned int flags) |
Delete (key,data) pair(s) using db->del or dbcursor->c_del. | |
int(* | _dbiVec::cget )(dbiIndex dbi, void *dbcursor, void **keypp, size_t *keylenp, void **datapp, size_t *datalenp, unsigned int flags) |
Retrieve (key,data) pair using db->get or dbcursor->c_get. | |
int(* | _dbiVec::cput )(dbiIndex dbi, void *dbcursor, const void *keyp, size_t keylen, const void *datap, size_t datalen, unsigned int flags) |
Store (key,data) pair using db->put or dbcursor->c_put. | |
int(* | _dbiVec::ccount )(dbiIndex dbi, void *dbcursor, unsigned int *countp, unsigned int flags) |
Retrieve count of (possible) duplicate items using dbcursor->c_count. | |
int(* | _dbiVec::byteswapped )(dbiIndex dbi) |
Is database byte swapped? | |
int(* | _dbiVec::stat )(dbiIndex dbi, unsigned int flags) |
Save statistics in database handle. |
|
Is database byte swapped?
Definition at line 183 of file rpmdb.c. References _dbiVec::byteswapped, and _dbiIndex::dbi_vec. Referenced by dbiSearch(), and dbiUpdateIndex(). |
|
Definition at line 195 of file rpmdb.c. References _dbiVec::cclose, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, and tagName(). Referenced by rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbRemove(), and unsatisfiedDepend(). |
|
Close index database.
Definition at line 337 of file rpmdb.c. References _dbiVec::close, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, and tagName(). Referenced by rpmdbClose(), and rpmdbCloseDBI(). |
|
Definition at line 188 of file rpmdb.c. References _dbiVec::copen, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, DBI_WRITECURSOR, and tagName(). Referenced by rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbRemove(), and unsatisfiedDepend(). |
|
Retrieve count of (possible) duplicate items.
Definition at line 311 of file rpmdb.c. References _dbiVec::ccount, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, and tagName(). |
|
Delete (key,data) pair(s) from index database.
Definition at line 211 of file rpmdb.c. References _dbiVec::cdel, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, RPMDBI_PACKAGES, and tagName(). Referenced by rpmdbRemove(). |
|
Destroy set of index database items.
Definition at line 748 of file rpmdb.c. References _free(), and _dbiIndexSet::recs. Referenced by addIndexEntry(), dbiFindByLabel(), removeIndexEntry(), rpmdbCountPackages(), rpmdbFindByFile(), and rpmdbInitIterator(). |
|
Retrieve (key,data) pair from index database.
Definition at line 229 of file rpmdb.c. References _dbiVec::cget, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, printable(), and tagName(). Referenced by dbiSearch(), rpmdbAdd(), rpmdbNextIterator(), and unsatisfiedDepend(). |
|
Return file index from element in index database set.
Definition at line 743 of file rpmdb.c. References _dbiIndexSet::recs, and _dbiIndexItem::tagNum. Referenced by rpmdbFindByFile(), and rpmdbNextIterator(). |
|
Return record offset of header from element in index database set.
Definition at line 738 of file rpmdb.c. References _dbiIndexItem::hdrNum, and _dbiIndexSet::recs. Referenced by dbiFindMatches(), rpmdbFindByFile(), and rpmdbNextIterator(). |
|
Count items in index database set.
Definition at line 733 of file rpmdb.c. References _dbiIndexSet::count. Referenced by dbiFindMatches(), and rpmdbCountPackages(). |
|
Return handle for an index database.
Definition at line 343 of file rpmdb.c. References _, _rebuildinprogress, db3Free(), dbiTagsMax, dbiTagToDbix(), errno, mydbvecs, _dbiVec::open, RPMERR_DBOPEN, rpmError, rpmExpandNumeric(), strerror(), and tagName(). Referenced by rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbOpenAll(), rpmdbRemove(), and unsatisfiedDepend(). |
|
Store (key,data) pair in index database.
Definition at line 271 of file rpmdb.c. References _dbiVec::cput, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, printable(), and tagName(). Referenced by dbiUpdateRecord(), rpmdbAdd(), and unsatisfiedDepend(). |
|
Flush pending operations to disk.
Definition at line 176 of file rpmdb.c. References _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, _dbiVec::sync, and tagName(). Referenced by dbiUpdateRecord(), rpmdbAdd(), rpmdbRemove(), and rpmdbSync(). |
|
Verify (and close) index database.
Definition at line 322 of file rpmdb.c. References _debug, _dbiVec::close, _dbiIndex::dbi_debug, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, _dbiIndex::dbi_verify_on_close, and tagName(). Referenced by rpmdbVerify(). |
|
Is database byte swapped?
Referenced by dbiByteSwapped(). |
|
Close database cursor.
Referenced by dbiCclose(). |
|
Retrieve count of (possible) duplicate items using dbcursor->c_count.
Referenced by dbiCount(). |
|
Delete (key,data) pair(s) using db->del or dbcursor->c_del.
Referenced by dbiDel(). |
|
Retrieve (key,data) pair using db->get or dbcursor->c_get.
Referenced by dbiGet(). |
|
Close index database, and destroy database handle.
Referenced by dbiClose(), and dbiVerify(). |
|
Open database cursor.
Referenced by dbiCopen(). |
|
Store (key,data) pair using db->put or dbcursor->c_put.
Referenced by dbiPut(). |
|
Return handle for an index database.
Referenced by dbiOpen(). |
|
Save statistics in database handle.
|
|
Flush pending operations to disk.
Referenced by dbiSync(). |