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, 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 *, const DBT *, const 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(* | open )(rpmdb rpmdb, rpmTag rpmtag, dbiIndex *dbip) |
int(* | close )(dbiIndex dbi, unsigned int flags) |
int(* | sync )(dbiIndex dbi, unsigned int flags) |
int(* | associate )(dbiIndex dbi, dbiIndex dbisecondary, int(*callback)(DB *, const DBT *, const DBT *, DBT *), unsigned int flags) |
int(* | join )(dbiIndex dbi, DBC **curslist, DBC **dbcp, unsigned int flags) |
int(* | copen )(dbiIndex dbi, DB_TXN *txnid, DBC **dbcp, unsigned int dbiflags) |
int(* | cclose )(dbiIndex dbi, DBC *dbcursor, unsigned int flags) |
int(* | cdup )(dbiIndex dbi, DBC *dbcursor, DBC **dbcp, unsigned int flags) |
int(* | cdel )(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
int(* | cget )(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
int(* | cpget )(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *pkey, DBT *data, unsigned int flags) |
int(* | cput )(dbiIndex dbi, DBC *dbcursor, DBT *key, DBT *data, unsigned int flags) |
int(* | ccount )(dbiIndex dbi, DBC *dbcursor, unsigned int *countp, unsigned int flags) |
int(* | byteswapped )(dbiIndex dbi) |
int(* | stat )(dbiIndex dbi, unsigned int flags) |
|
Associate secondary database with primary.
|
|
Is database byte swapped?
Definition at line 724 of file rpmdb.h. References _dbiVec::byteswapped, _dbiIndex::dbi_byteswapped, and _dbiIndex::dbi_vec. |
|
Close a database cursor.
Definition at line 523 of file rpmdb.h. Referenced by rpmdbAdd, rpmdbCountPackages, rpmdbFindByFile, rpmdbFreeIterator, rpmdbGrowIterator, rpmdbInitIterator, rpmdbRemove, and unsatisfiedDepend. |
|
Duplicate a database cursor.
|
|
Close index database.
Definition at line 662 of file rpmdb.h. Referenced by rpmdbClose, and rpmdbCloseDBI. |
|
Open a database cursor.
Definition at line 507 of file rpmdb.h. Referenced by rpmdbAdd, rpmdbCountPackages, rpmdbFindByFile, rpmdbGrowIterator, rpmdbInitIterator, rpmdbNextIterator, rpmdbRemove, and unsatisfiedDepend. |
|
Retrieve count of (possible) duplicate items.
|
|
Delete (key,data) pair(s) from index database.
Definition at line 556 of file rpmdb.h. Referenced by rpmdbRemove. |
|
Destroy set of index database items.
Definition at line 611 of file rpmdb.c. Referenced by dbiFindByLabel, dbiFindMatches, rpmdbAdd, rpmdbCountPackages, rpmdbFindByFile, rpmdbFreeIterator, rpmdbGrowIterator, rpmdbInitIterator, and rpmdbRemove. |
|
Retrieve (key,data) pair from index database.
Definition at line 575 of file rpmdb.h. 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. Referenced by rpmdbFindByFile, and rpmdbNextIterator. |
|
Return record offset of header from element in index database set.
Definition at line 601 of file rpmdb.c. Referenced by dbiFindMatches, rpmdbFindByFile, and rpmdbNextIterator. |
|
Count items in index database set.
Definition at line 596 of file rpmdb.c. Referenced by dbiFindMatches, and rpmdbCountPackages. |
|
Return join cursor for list of cursors.
Definition at line 710 of file rpmdb.h. References _dbiIndex::dbi_vec, and _dbiVec::join. |
|
Return handle for an index database.
Definition at line 244 of file rpmdb.c. References _dbiVec::byteswapped, and _dbiVec::stat. Referenced by openDatabase, rpmdbAdd, rpmdbCountPackages, rpmdbFindByFile, rpmdbFreeIterator, rpmdbGrowIterator, rpmdbInitIterator, rpmdbNextIterator, rpmdbOpenAll, rpmdbRemove, and unsatisfiedDepend. |
|
Retrieve (key,data) pair using dbcursor->c_pget.
|
|
Store (key,data) pair in index database.
Definition at line 614 of file rpmdb.h. Referenced by miFreeHeader, rpmdbAdd, rpmdbRemove, and unsatisfiedDepend. |
|
Is database byte swapped?
Definition at line 738 of file rpmdb.h. References _dbiIndex::dbi_vec, and _dbiVec::stat. Referenced by dbiOpen. |
|
Flush pending operations to disk.
Definition at line 676 of file rpmdb.h. Referenced by miFreeHeader, rpmdbAdd, rpmdbRemove, and rpmdbSync. |
|
Verify (and close) index database.
Definition at line 647 of file rpmdb.h. Referenced by rpmdbVerify. |
|
Associate secondary database with primary.
Referenced by rpmdbCheckSignals. |
|
Is database byte swapped?
Referenced by dbiByteSwapped, and dbiOpen. |
|
Close database cursor.
|
|
Retrieve count of (possible) duplicate items using dbcursor->c_count.
|
|
Delete (key,data) pair(s) using db->del or dbcursor->c_del.
|
|
Duplicate a database cursor.
|
|
Retrieve (key,data) pair using db->get or dbcursor->c_get.
|
|
Close index database, and destroy database handle.
|
|
Open database cursor.
|
|
Retrieve (key,data) pair using dbcursor->c_pget.
|
|
Store (key,data) pair using db->put or dbcursor->c_put.
|
|
Return join cursor for list of cursors.
Referenced by dbiJoin. |
|
Return handle for an index database.
Referenced by dbiOpen. |
|
Save statistics in database handle.
|
|
Flush pending operations to disk.
|