Files | |
| file | rpmdb.c |
| file | rpmdb.h |
| Access RPM indices using Berkeley DB interface(s). | |
| file | rpmlib.h |
Data Structures | |
| struct | _dbiIndex |
| struct | _dbiIndexItem |
| struct | _dbiIndexSet |
| struct | _dbiVec |
| struct | dbiBStats_s |
| struct | dbiHStats_s |
Functions | |
| dbiIndex | dbiOpen (rpmdb db, int rpmtag, unsigned int flags) |
| 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) |
| int | dbiGet (dbiIndex dbi, void *dbcursor, void **keypp, size_t *keylenp, void **datapp, size_t *datalenp, unsigned int flags) |
| int | dbiPut (dbiIndex dbi, void *dbcursor, const void *keyp, size_t keylen, const void *datap, size_t datalen, unsigned int flags) |
| int | dbiCount (dbiIndex dbi, void *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 | dbiByteSwapped (dbiIndex dbi) |
| 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(* | open )(rpmdb rpmdb, int rpmtag, dbiIndex *dbip) |
| int(* | close )(dbiIndex dbi, unsigned int flags) |
| int(* | sync )(dbiIndex dbi, unsigned int flags) |
| int(* | copen )(dbiIndex dbi, void **dbcp, unsigned int flags) |
| int(* | cclose )(dbiIndex dbi, void *dbcursor, unsigned int flags) |
| int(* | cdel )(dbiIndex dbi, void *dbcursor, const void *keyp, size_t keylen, unsigned int flags) |
| int(* | cget )(dbiIndex dbi, void *dbcursor, void **keypp, size_t *keylenp, void **datapp, size_t *datalenp, unsigned int flags) |
| int(* | cput )(dbiIndex dbi, void *dbcursor, const void *keyp, size_t keylen, const void *datap, size_t datalen, unsigned int flags) |
| int(* | ccount )(dbiIndex dbi, void *dbcursor, unsigned int *countp, unsigned int flags) |
| int(* | byteswapped )(dbiIndex dbi) |
| int(* | stat )(dbiIndex dbi, unsigned int flags) |
|
|
Is database byte swapped?
Definition at line 215 of file rpmdb.c. References _dbiVec::byteswapped, _dbiIndex::dbi_vec, and INLINE. Referenced by dbiSearch(), and dbiUpdateIndex(). |
|
||||||||||||||||
|
Definition at line 227 of file rpmdb.c. References _debug, _dbiVec::cclose, DBC, _dbiIndex::dbi_debug, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, INLINE, and tagName(). Referenced by openDatabase(), rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbRemove(), and unsatisfiedDepend(). |
|
||||||||||||
|
Close index database.
Definition at line 382 of file rpmdb.c. References _debug, _dbiVec::close, _dbiIndex::dbi_debug, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, INLINE, and tagName(). Referenced by rpmdbClose(), and rpmdbCloseDBI(). |
|
||||||||||||||||
|
Definition at line 220 of file rpmdb.c. References _debug, _dbiVec::copen, DBC, _dbiIndex::dbi_debug, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, DBI_WRITECURSOR, INLINE, and tagName(). Referenced by openDatabase(), rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbRemove(), and unsatisfiedDepend(). |
|
||||||||||||||||||||
|
Retrieve count of (possible) duplicate items.
Definition at line 356 of file rpmdb.c. References _dbiVec::ccount, DBC, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, INLINE, and tagName(). |
|
||||||||||||||||||||||||
|
Delete (key,data) pair(s) from index database.
Definition at line 234 of file rpmdb.c. References _debug, _dbiVec::cdel, DBC, _dbiIndex::dbi_debug, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, INLINE, RPMDBI_PACKAGES, and tagName(). Referenced by dbiUpdateIndex(), and rpmdbRemove(). |
|
|
Destroy set of index database items.
Definition at line 793 of file rpmdb.c. References _free(), and _dbiIndexSet::recs. Referenced by addIndexEntry(), dbiFindByLabel(), dbiFindMatches(), removeIndexEntry(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), rpmdbInitIterator(), and rpmRunTransactions(). |
|
||||||||||||||||||||||||||||||||
|
Retrieve (key,data) pair from index database.
Definition at line 252 of file rpmdb.c. References _debug, _dbiVec::cget, DBC, _dbiIndex::dbi_debug, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, INLINE, printable(), and tagName(). Referenced by dbiSearch(), openDatabase(), rpmdbAdd(), rpmdbNextIterator(), and unsatisfiedDepend(). |
|
||||||||||||
|
Return file index from element in index database set.
Definition at line 788 of file rpmdb.c. References _dbiIndexSet::recs, and _dbiIndexItem::tagNum. Referenced by rpmdbFindByFile(), rpmdbNextIterator(), and rpmRunTransactions(). |
|
||||||||||||
|
Return record offset of header from element in index database set.
Definition at line 783 of file rpmdb.c. References _dbiIndexItem::hdrNum, and _dbiIndexSet::recs. Referenced by dbiFindMatches(), rpmdbFindByFile(), rpmdbNextIterator(), and rpmRunTransactions(). |
|
|
Count items in index database set.
Definition at line 778 of file rpmdb.c. References _dbiIndexSet::count. Referenced by dbiFindMatches(), rpmdbCountPackages(), and rpmRunTransactions(). |
|
||||||||||||||||
|
Return handle for an index database.
Definition at line 388 of file rpmdb.c. References _, rpmdb_s::_dbi, _rebuildinprogress, db3Free(), rpmdb_s::db_api, dbiTagsMax, dbiTagToDbix(), errno, _dbiVec::open, RPMERR_DBOPEN, rpmError, rpmExpandNumeric(), and tagName(). Referenced by openDatabase(), rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbNextIterator(), rpmdbOpenAll(), rpmdbRemove(), and unsatisfiedDepend(). |
|
||||||||||||||||||||||||||||||||
|
Store (key,data) pair in index database.
Definition at line 305 of file rpmdb.c. References _debug, _dbiVec::cput, DBC, _dbiIndex::dbi_debug, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, INLINE, printable(), and tagName(). Referenced by dbiUpdateIndex(), dbiUpdateRecord(), rpmdbAdd(), and unsatisfiedDepend(). |
|
||||||||||||
|
Flush pending operations to disk.
Definition at line 208 of file rpmdb.c. References _debug, _dbiIndex::dbi_debug, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, INLINE, _dbiVec::sync, and tagName(). Referenced by dbiUpdateRecord(), rpmdbAdd(), rpmdbRemove(), and rpmdbSync(). |
|
||||||||||||
|
Verify (and close) index database.
Definition at line 367 of file rpmdb.c. References _debug, _dbiVec::close, _dbiIndex::dbi_debug, _dbiIndex::dbi_rpmtag, _dbiIndex::dbi_vec, _dbiIndex::dbi_verify_on_close, INLINE, 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(). |
1.2.18