head 1.2; access; symbols RPM_4_2_1:1.1.1.5 RPM_4_2:1.1.1.5 RPM_4_1_1:1.1.1.5 RPM_4_1:1.1.1.4 RPM_4_0_5:1.1.1.3 RPM_4_0_4:1.1.1.2 RPM_4_0_3:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.2 date 2008.01.02.09.54.39; author rse; state dead; branches; next 1.1; commitid z4cpSiAhOCXk5PLs; 1.1 date 2001.07.23.20.45.37; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.07.23.20.45.37; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2002.01.08.00.30.11; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2003.01.18.13.49.01; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2001.05.13.19.58.45; author rse; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2003.01.18.14.04.59; author rse; state Exp; branches; next ; desc @@ 1.2 log @remove the ancient RPM 4.2.1 source tree copy @ text @
|
![]() ![]() ![]() |
Once a database handle has been created using db_create, there are several standard access method operations. Each of these operations is performed using a method referred to by the returned handle. Generally, the database will be opened using DB->open. If the database is from an old release of Berkeley DB, it may need to be upgraded to the current release before it is opened using DB->upgrade.
Once a database has been opened, records may be retrieved (DB->get), stored (DB->put), and deleted (DB->del).
Additional operations supported by the database handle include statistics (DB->stat), truncation (DB->truncate), version upgrade (DB->upgrade), verification and salvage (DB->verify), flushing to a backing file (DB->sync), and association of secondary indices (DB->associate). Database handles are eventually closed using DB->close.
![]() ![]() ![]() |
Copyright Sleepycat Software @ 1.1 log @Initial revision @ text @d1 1 a1 1 @ 1.1.1.1 log @Import: RPM 4.0.3 @ text @@ 1.1.1.2 log @Import: RPM 4.0.4 @ text @d1 1 a1 1 @ 1.1.1.3 log @Import: RPM 4.0.5 @ text @d1 2 a2 2 a3 1 a30 52
Databases and Related Methods | Description |
---|---|
DB->associate | Associate a secondary index |
DB->close | Close a database |
DB->cursor | Create a cursor handle |
DB->del | Delete items from a database |
DB->err | Error message with error string |
DB->errx | Error message |
DB->fd | Return a file descriptor from a database |
DB->get | Get items from a database |
DB->get_byteswapped | Return if the underlying database is in host order |
DB->get_type | Return the database type |
DB->join | Perform a database join on cursors |
DB->key_range | Return estimate of key location |
DB->open | Open a database |
DB->pget | Get items from a database |
DB->put | Store items into a database |
DB->remove | Remove a database |
DB->rename | Rename a database |
DB->set_alloc | Set local space allocation functions |
DB->set_append_recno | Set record append callback |
DB->set_bt_compare | Set a Btree comparison function |
DB->set_bt_minkey | Set the minimum number of keys per Btree page |
DB->set_bt_prefix | Set a Btree prefix comparison function |
DB->set_cache_priority | Set the database cache priority |
DB->set_cachesize | Set the database cache size |
DB->set_dup_compare | Set a duplicate comparison function |
DB->set_encrypt | Set the database cryptographic key |
DB->set_errcall | Set error message callback |
DB->set_errfile | Set error message FILE |
Db::set_error_stream | Set error message output stream |
DB->set_errpfx | Set error message prefix |
DB->set_feedback | Set feedback callback |
DB->set_flags | General database configuration |
DB->set_h_ffactor | Set the Hash table density |
DB->set_h_hash | Set a hashing function |
DB->set_h_nelem | Set the Hash table size |
DB->set_lorder | Set the database byte order |
DB->set_pagesize | Set the underlying database page size |
DB->set_paniccall | Set panic callback |
DB->set_q_extentsize | Set Queue database extent size |
DB->set_re_delim | Set the variable-length record delimiter |
DB->set_re_len | Set the fixed-length record length |
DB->set_re_pad | Set the fixed-length record pad byte |
DB->set_re_source | Set the backing Recno text file |
DB->stat | Return database statistics |
DB->sync | Flush a database to stable storage |
DB->truncate | Empty a database |
DB->upgrade | Upgrade a database |
DB->verify | Verify/salvage a database |
Databases and Related Methods | Description |
---|---|
DB->associate | Associate a secondary index |
DB->close | Close a database |
DB->cursor | Create a cursor handle |
DB->del | Delete items from a database |
DB->err | Error message with error string |
DB->errx | Error message |
DB->fd | Return a file descriptor from a database |
DB->get | Get items from a database |
DB->get_byteswapped | Return if the underlying database is in host order |
DB->get_type | Return the database type |
DB->join | Perform a database join on cursors |
DB->key_range | Return estimate of key location |
DB->open | Open a database |
DB->pget | Get items from a database |
DB->put | Store items into a database |
DB->remove | Remove a database |
DB->rename | Rename a database |
DB->set_alloc | Set local space allocation functions |
DB->set_append_recno | Set record append callback |
DB->set_bt_compare | Set a Btree comparison function |
DB->set_bt_minkey | Set the minimum number of keys per Btree page |
DB->set_bt_prefix | Set a Btree prefix comparison function |
DB->set_cache_priority | Set the database cache priority |
DB->set_cachesize | Set the database cache size |
DB->set_dup_compare | Set a duplicate comparison function |
DB->set_encrypt | Set the database cryptographic key |
DB->set_errcall | Set error message callback |
DB->set_errfile | Set error message FILE |
Db::set_error_stream | Set error message output stream |
DB->set_errpfx | Set error message prefix |
DB->set_feedback | Set feedback callback |
DB->set_flags | General database configuration |
DB->set_h_ffactor | Set the Hash table density |
DB->set_h_hash | Set a hashing function |
DB->set_h_nelem | Set the Hash table size |
DB->set_lorder | Set the database byte order |
DB->set_pagesize | Set the underlying database page size |
DB->set_paniccall | Set panic callback |
DB->set_q_extentsize | Set Queue database extent size |
DB->set_re_delim | Set the variable-length record delimiter |
DB->set_re_len | Set the fixed-length record length |
DB->set_re_pad | Set the fixed-length record pad byte |
DB->set_re_source | Set the backing Recno text file |
DB->stat | Return database statistics |
DB->sync | Flush a database to stable storage |
DB->truncate | Empty a database |
DB->upgrade | Upgrade a database |
DB->verify | Verify/salvage a database |