Files | |
file | rpmdb.c |
file | rpmdb.h |
Access RPM indices using Berkeley DB interface(s). | |
file | rpmlib.h |
In Memoriam: Steve Taylor <staylor@redhat.com> was here, now he's not. | |
Data Structures | |
struct | _dbiIndex |
struct | _dbiIndexItem |
struct | _dbiIndexSet |
struct | _dbiVec |
struct | dbiBStats_s |
struct | dbiHStats_s |
Functions | |
dbiIndex | dbiOpen (rpmdb db, rpmTag rpmtag, unsigned int flags) |
int | dbiCopen (dbiIndex dbi, DB_TXN *txnid, DBC **dbcp, unsigned int flags) |
int | dbiCclose (dbiIndex dbi, DBC *dbcursor, unsigned int flags) |
int | dbiCdup (dbiIndex dbi, DBC *dbcursor, DBC **dbcp, unsigned int flags) |
int | dbiDel (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
int | dbiGet (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
int | dbiPget (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *pkey, DBT *data, unsigned int flags) |
int | dbiPut (dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
int | dbiCount (dbiIndex dbi, DBC *dbcursor, unsigned int *countp, unsigned int flags) |
int | dbiVerify (dbiIndex dbi, unsigned int flags) |
int | dbiClose (dbiIndex dbi, unsigned int flags) |
int | dbiSync (dbiIndex dbi, unsigned int flags) |
int | dbiAssociate (dbiIndex dbi, dbiIndex dbisecondary, int(*callback)(DB *, DBT *, DBT *, DBT *), unsigned int flags) |
int | dbiJoin (dbiIndex dbi, DBC **curslist, DBC **dbcp, unsigned int flags) |
int | dbiByteSwapped (dbiIndex dbi) |
int | dbiStat (dbiIndex dbi, unsigned int flags) |
dbiIndexSet | dbiFreeIndexSet (dbiIndexSet set) |
unsigned int | dbiIndexSetCount (dbiIndexSet set) |
unsigned int | dbiIndexRecordOffset (dbiIndexSet set, int recno) |
unsigned int | dbiIndexRecordFileNumber (dbiIndexSet set, int recno) |
Variables | |
int(* | _dbiVec::open )(rpmdb rpmdb, rpmTag rpmtag, dbiIndex *dbip) |
int(* | _dbiVec::close )(dbiIndex dbi, unsigned int flags) |
int(* | _dbiVec::sync )(dbiIndex dbi, unsigned int flags) |
int(* | _dbiVec::associate )(dbiIndex dbi, dbiIndex dbisecondary, int(*callback)(DB *, DBT *, DBT *, DBT *), unsigned int flags) |
int(* | _dbiVec::join )(dbiIndex dbi, DBC **curslist, DBC **dbcp, unsigned int flags) |
int(* | _dbiVec::copen )(dbiIndex dbi, DB_TXN *txnid, DBC **dbcp, unsigned int dbiflags) |
int(* | _dbiVec::cclose )(dbiIndex dbi, DBC *dbcursor, unsigned int flags) |
int(* | _dbiVec::cdup )(dbiIndex dbi, DBC *dbcursor, DBC **dbcp, unsigned int flags) |
int(* | _dbiVec::cdel )(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
int(* | _dbiVec::cget )(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
int(* | _dbiVec::cpget )(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *pkey, DBT *data, unsigned int flags) |
int(* | _dbiVec::cput )(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
int(* | _dbiVec::ccount )(dbiIndex dbi, DBC *dbcursor, unsigned int *countp, unsigned int flags) |
int(* | _dbiVec::byteswapped )(dbiIndex dbi) |
int(* | _dbiVec::stat )(dbiIndex dbi, unsigned int flags) |
|
Associate secondary database with primary.
Definition at line 712 of file rpmdb.h. References _dbiVec::associate, _dbiIndex::dbi_vec, and dbiIndex. |
|
Is database byte swapped?
Definition at line 744 of file rpmdb.h. References _dbiVec::byteswapped, _dbiIndex::dbi_byteswapped, _dbiIndex::dbi_vec, and dbiIndex. |
|
Close a database cursor.
Definition at line 527 of file rpmdb.h. References _dbiVec::cclose, _dbiIndex::dbi_vec, and dbiIndex. Referenced by rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbRemove(), and unsatisfiedDepend(). |
|
Duplicate a database cursor.
Definition at line 543 of file rpmdb.h. References _dbiVec::cdup, _dbiIndex::dbi_vec, and dbiIndex. |
|
Close index database.
Definition at line 682 of file rpmdb.h. References _dbiVec::close, _dbiIndex::dbi_vec, and dbiIndex. Referenced by rpmdbClose(), and rpmdbCloseDBI(). |
|
Open a database cursor.
Definition at line 511 of file rpmdb.h. References _dbiVec::copen, _dbiIndex::dbi_vec, and dbiIndex. Referenced by rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbRemove(), and unsatisfiedDepend(). |
|
Retrieve count of (possible) duplicate items.
Definition at line 652 of file rpmdb.h. References _dbiVec::ccount, _dbiIndex::dbi_vec, and dbiIndex. |
|
Delete (key,data) pair(s) from index database.
Definition at line 560 of file rpmdb.h. References _dbiVec::cdel, rpmdb_s::db_delops, _dbiIndex::dbi_rpmdb, _dbiIndex::dbi_vec, dbiIndex, rpmswEnter(), and rpmswExit(). Referenced by rpmdbRemove(). |
|
Destroy set of index database items.
Definition at line 611 of file rpmdb.c. References _free(), dbiIndexSet, and _dbiIndexSet::recs. Referenced by dbiFindByLabel(), dbiFindMatches(), rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbRemove(), and rpmtsRun(). |
|
Retrieve (key,data) pair from index database.
Definition at line 583 of file rpmdb.h. References _dbiVec::cget, rpmdb_s::db_getops, _dbiIndex::dbi_rpmdb, _dbiIndex::dbi_vec, dbiIndex, rpmswEnter(), and rpmswExit(). Referenced by dbiFindMatches(), rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbRemove(), and unsatisfiedDepend(). |
|
Return file index from element in index database set.
Definition at line 606 of file rpmdb.c. References dbiIndexSet, _dbiIndexSet::recs, and _dbiIndexItem::tagNum. Referenced by rpmdbFindByFile(), rpmdbNextIterator(), and rpmtsRun(). |
|
Return record offset of header from element in index database set.
Definition at line 601 of file rpmdb.c. References dbiIndexSet, _dbiIndexItem::hdrNum, and _dbiIndexSet::recs. Referenced by dbiFindMatches(), rpmdbFindByFile(), rpmdbNextIterator(), and rpmtsRun(). |
|
Count items in index database set.
Definition at line 596 of file rpmdb.c. References _dbiIndexSet::count, and dbiIndexSet. Referenced by dbiFindMatches(), rpmdbCountPackages(), and rpmtsRun(). |
|
Return join cursor for list of cursors.
Definition at line 730 of file rpmdb.h. References _dbiIndex::dbi_vec, dbiIndex, and _dbiVec::join. |
|
Return handle for an index database.
Definition at line 244 of file rpmdb.c. References _, rpmdb_s::_dbi, _rebuildinprogress, db3Free(), rpmdb_s::db_api, rpmdb_s::db_bits, rpmdb_s::db_nbits, _dbiIndex::dbi_stats, dbiIndex, dbiStat(), dbiTagsMax, dbiTagToDbix(), errno, mydbvecs, _dbiVec::open, PBM_ALLOC, rpmdb, RPMDBI_PACKAGES, RPMERR_DBOPEN, rpmError, rpmExpandNumeric(), rpmTag, strerror(), and tagName(). Referenced by openDatabase(), rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbOpenAll(), rpmdbRemove(), rpmpsmStage(), and unsatisfiedDepend(). |
|
Retrieve (key,data) pair using dbcursor->c_pget.
Definition at line 607 of file rpmdb.h. References _dbiVec::cpget, rpmdb_s::db_getops, _dbiIndex::dbi_rpmdb, _dbiIndex::dbi_vec, dbiIndex, rpmswEnter(), and rpmswExit(). |
|
Store (key,data) pair in index database.
Definition at line 630 of file rpmdb.h. References _dbiVec::cput, rpmdb_s::db_putops, _dbiIndex::dbi_rpmdb, _dbiIndex::dbi_vec, dbiIndex, rpmswEnter(), and rpmswExit(). Referenced by miFreeHeader(), rpmdbAdd(), rpmdbRemove(), and unsatisfiedDepend(). |
|
Is database byte swapped?
Definition at line 758 of file rpmdb.h. References _dbiIndex::dbi_vec, dbiIndex, and _dbiVec::stat. Referenced by dbiOpen(). |
|
Flush pending operations to disk.
Definition at line 696 of file rpmdb.h. References _dbiIndex::dbi_vec, dbiIndex, and _dbiVec::sync. Referenced by miFreeHeader(), rpmdbAdd(), rpmdbRemove(), and rpmdbSync(). |
|
Verify (and close) index database.
Definition at line 667 of file rpmdb.h. References _dbiVec::close, _dbiIndex::dbi_vec, _dbiIndex::dbi_verify_on_close, and dbiIndex. Referenced by rpmdbVerify(). |
|
Associate secondary database with primary.
Referenced by dbiAssociate(). |
|
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(). |
|
Duplicate a database cursor.
Referenced by dbiCdup(). |
|
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(). |
|
Retrieve (key,data) pair using dbcursor->c_pget.
Referenced by dbiPget(). |
|
Store (key,data) pair using db->put or dbcursor->c_put.
Referenced by dbiPut(). |
|
Return join cursor for list of cursors.
Referenced by dbiJoin(). |
|
Return handle for an index database.
Referenced by dbiOpen(). |
|
Save statistics in database handle.
Referenced by dbiStat(). |
|
Flush pending operations to disk.
Referenced by dbiSync(). |