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 | _dbiIR |
| struct | _dbiVec |
Functions | |
| dbiIndex | dbiOpen (rpmdb rpmdb, 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 | dbiClose (dbiIndex dbi, unsigned int flags) |
| int | dbiSync (dbiIndex dbi, unsigned int flags) |
| int | dbiByteSwapped (dbiIndex dbi) |
| void | 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 (* | byteswapped )(dbiIndex dbi) |
|
|
Is database byte swapped?
Definition at line 146 of file rpmdb.c. Referenced by dbiSearch(), and dbiUpdateIndex().
|
|
|
|
|
|
Close index database.
Definition at line 233 of file rpmdb.c. Referenced by rpmdbClose().
|
|
|
|
|
|
Delete (key,data) pair(s) from index database.
Definition at line 166 of file rpmdb.c. Referenced by dbiUpdateIndex(), and rpmdbRemove().
|
|
|
Destroy set of index database items.
Definition at line 612 of file rpmdb.c. Referenced by addIndexEntry(), dbiFindByLabel(), dbiFindMatches(), removeIndexEntry(), rpmRunTransactions(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), and rpmdbInitIterator().
|
|
|
Retrieve (key,data) pair from index database.
Definition at line 183 of file rpmdb.c. Referenced by XrpmdbNextIterator(), dbiSearch(), openDatabase(), rpmdbAdd(), and unsatisfiedDepend().
|
|
|
Return file index from element in index database set.
Definition at line 607 of file rpmdb.c. Referenced by XrpmdbNextIterator(), rpmRunTransactions(), and rpmdbFindByFile().
|
|
|
Return record offset of header from element in index database set.
Definition at line 602 of file rpmdb.c. Referenced by XrpmdbNextIterator(), dbiFindMatches(), rpmRunTransactions(), and rpmdbFindByFile().
|
|
|
Count items in index database set.
Definition at line 597 of file rpmdb.c. Referenced by dbiFindMatches(), rpmRunTransactions(), and rpmdbCountPackages().
|
|
|
Return handle for an index database.
Definition at line 239 of file rpmdb.c. Referenced by XrpmdbNextIterator(), openDatabase(), rpmdbAdd(), rpmdbCountPackages(), rpmdbFindByFile(), rpmdbFreeIterator(), rpmdbGrowIterator(), rpmdbInitIterator(), rpmdbOpenAll(), rpmdbRemove(), and unsatisfiedDepend().
|
|
|
Store (key,data) pair in index database.
Definition at line 212 of file rpmdb.c. Referenced by dbiUpdateIndex(), dbiUpdateRecord(), rpmdbAdd(), and unsatisfiedDepend().
|
|
|
Flush pending operations to disk.
Definition at line 140 of file rpmdb.c. Referenced by dbiUpdateRecord(), rpmdbAdd(), rpmdbRemove(), and rpmdbSync().
|
|
|
Is database byte swapped?
|
|
|
Close database cursor.
|
|
|
Delete (key,data) pair(s) using db->del or dbcursor->c_del.
|
|
|
Retrieve (key,data) pair using db->get or dbcursor->c_get.
|
|
|
Close index database.
|
|
|
Open database cursor.
|
|
|
Store (key,data) pair using db->put or dbcursor->c_put.
|
|
|
Return handle for an index database.
|
|
|
Flush pending operations to disk.
|
1.2.6-20010408 written by Dimitri van Heesch,
© 1997-2001