Berkeley DB: Berkeley DB: C Handle Methods (version 4.6.21)
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++

### Berkeley DB: C Handle Methods (version 4.6.21)

C Handle Methods | Description
--- | ---
db_create | Create a database handle
DB->associate | Associate a secondary index
DB->close | Close a database
DB->compact | Compact a database
DB->cursor | Create a cursor
DB->del | Delete items from a database
DB->err, DB->errx | Error message
DB->exists | Return if an item appears in a database
DB->fd | Return a file descriptor from a database
DB->get, DB->pget | Get items from a database
DB->get_byteswapped | Return if the underlying database is in host order
DB->get_env | Return DB's underlying DB_ENV handle
DB->get_type | Return the database type
DB->join | Perform a database join on cursors
DB->key_range | Return estimate of key location
DB->get_mpf | Return DB's underlying DB_MPOOLFILE handle
DB->open | Open 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_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, DB->set_msgcall | Set error and informational message callback
DB->set_errfile, DB->set_msgfile | Set error and informational message FILE
DB->set_errpfx | Set error message prefix
DB->set_feedback | Set feedback callback
DB->set_flags | General database configuration
DB->set_h_compare | Set a Hash comparison function
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_priority | Set cache page priority
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, DB->stat_print | 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
DBcursor->close | Close a cursor
DBcursor->count | Return count of duplicates
DBcursor->del | Delete by cursor
DBcursor->dup | Duplicate a cursor
DBcursor->get, DBcursor->pget | Retrieve by cursor
DBcursor->put | Store by cursor
DBcursor->set_priority | Set the cursor's cache priority
db_env_create | Create an environment handle
DB_ENV->cdsgroup_begin | Get a locker ID in Berkeley DB Concurrent Data Store
DB_ENV->close | Close an environment
DB_ENV->dbremove | Remove a database
DB_ENV->dbrename | Rename a database
DB_ENV->err, DB_ENV->errx | Error message
DB_ENV->failchk | Check for thread failure
DB_ENV->fileid_reset | Reset database file IDs
DB_ENV->get_home | Return environment's home directory
DB_ENV->get_open_flags | Return flags with which the environment was opened
DB_ENV->lock_detect | Perform deadlock detection
DB_ENV->lock_get | Acquire a lock
DB_ENV->lock_id | Acquire a locker ID
DB_ENV->lock_id_free | Release a locker ID
DB_ENV->lock_put | Release a lock
DB_ENV->lock_stat | Return lock subsystem statistics
DB_ENV->lock_vec | Acquire/release locks
DB_ENV->log_archive | List log and database files
DB_ENV->log_file | Map Log Sequence Numbers to log files
DB_ENV->log_flush | Flush log records
DB_ENV->log_printf | Append informational message to the log
DB_ENV->log_put | Write a log record
DB_ENV->log_stat | Return log subsystem statistics
DB_ENV->lsn_reset | Reset database file LSNs
DB_ENV->memp_fcreate | Create a memory pool file handle
DB_ENV->memp_register | Register input/output functions for a file in a memory pool
DB_ENV->memp_stat | Return memory pool statistics
DB_ENV->memp_sync | Flush pages from a memory pool
DB_ENV->memp_trickle | Trickle flush pages from a memory pool
DB_ENV->mutex_alloc | Allocate a mutex
DB_ENV->mutex_free | Free a mutex
DB_ENV->mutex_lock | Lock a mutex
DB_ENV->mutex_set_align | Configure mutex alignment
DB_ENV->mutex_set_increment | Configure number of additional mutexes
DB_ENV->mutex_set_max | Configure total number of mutexes
DB_ENV->mutex_set_tas_spins | Configure test-and-set mutex spin count
DB_ENV->mutex_stat | Mutex statistics
DB_ENV->mutex_unlock | Unlock a mutex
DB_ENV->open | Open an environment
DB_ENV->remove | Remove an environment
DB_ENV->rep_elect | Hold a replication election
DB_ENV->rep_process_message | Process a replication message
DB_ENV->rep_set_config | Configure the replication subsystem
DB_ENV->rep_set_limit | Limit data sent in response to a single message
DB_ENV->rep_set_nsites | Configure replication group site count
DB_ENV->rep_set_priority | Configure replication site priority
DB_ENV->rep_set_request | Configure replication client retransmission requests
DB_ENV->rep_set_timeout | Configure replication timeouts
DB_ENV->rep_set_transport | Configure replication transport callback
DB_ENV->rep_start | Configure an environment for replication
DB_ENV->rep_stat | Replication statistics
DB_ENV->rep_sync | Replication synchronization
DB_ENV->repmgr_add_remote_site | Specify the replication manager's remote sites
DB_ENV->repmgr_set_ack_policy | Specify the replication manager's client acknowledgement policy
DB_ENV->repmgr_set_local_site | Specify the replication manager's local site
DB_ENV->repmgr_site_list | List the sites and their status
DB_ENV->repmgr_start | Start the replication manager
DB_ENV->repmgr_stat | Replication manager statistics
DB_ENV->set_alloc | Set local space allocation functions
DB_ENV->set_app_dispatch | Configure application recovery
DB_ENV->set_cache_max | Set the maximum cache size
DB_ENV->set_cachesize | Set the environment cache size
DB_ENV->set_data_dir | Set the environment data directory
DB_ENV->set_encrypt | Set the environment cryptographic key
DB_ENV->set_errcall, DB_ENV->set_msgcall | Set error and informational message callbacks
DB_ENV->set_errfile, DB_ENV->set_msgfile | Set error and informational message FILE
DB_ENV->set_errpfx | Set error message prefix
DB_ENV->set_event_notify | Set event notification callback
DB_ENV->set_feedback | Set feedback callback
DB_ENV->set_flags | Environment configuration
DB_ENV->set_isalive | Set thread is-alive callback
DB_ENV->set_lg_bsize | Set log buffer size
DB_ENV->set_lg_dir | Set the environment logging directory
DB_ENV->set_lg_filemode | Set log file mode
DB_ENV->set_lg_max | Set log file size
DB_ENV->set_lg_regionmax | Set logging region size
DB_ENV->set_lk_conflicts | Set lock conflicts matrix
DB_ENV->set_lk_detect | Set automatic deadlock detection
DB_ENV->set_lk_max_lockers | Set maximum number of lockers
DB_ENV->set_lk_max_locks | Set maximum number of locks
DB_ENV->set_lk_max_objects | Set maximum number of lock objects
DB_ENV->set_mp_max_openfd | Set the maximum number of open file descriptors
DB_ENV->set_mp_max_write | Set the maximum number of sequential disk writes
DB_ENV->set_mp_mmapsize | Set maximum mapped-in database file size
DB_ENV->set_rpc_server | Establish an RPC server connection
DB_ENV->set_shm_key | Set system memory shared segment ID
DB_ENV->set_thread_count | Set approximate thread count
DB_ENV->set_thread_id | Set thread of control ID function
DB_ENV->set_thread_id_string | Set thread of control ID format function
DB_ENV->set_timeout | Set lock and transaction timeout
DB_ENV->set_tmp_dir | Set the environment temporary file directory
DB_ENV->set_tx_max | Set maximum number of transactions
DB_ENV->set_tx_timestamp | Set recovery timestamp
DB_ENV->set_verbose | Set verbose messages
DB_ENV->stat_print | Environment statistics
DB_ENV->txn_begin | Begin a transaction
DB_ENV->txn_checkpoint | Checkpoint the transaction subsystem
DB_ENV->txn_recover | Distributed transaction recovery
DB_ENV->txn_stat | Return transaction subsystem statistics
DB_ENV->log_cursor | Create a log cursor handle
DB_LOGC->close | Close a log cursor
DB_LOGC->get | Retrieve a log record
DB_LSN | Log Sequence Numbers
DB_MPOOLFILE->close | Close a file in a memory pool
DB_MPOOLFILE->get | Get page from a file in a memory pool
DB_MPOOLFILE->open | Open a file in a memory pool
DB_MPOOLFILE->put | Return a page to a memory pool
DB_MPOOLFILE->set_clear_len | Set file page bytes to be cleared
DB_MPOOLFILE->set_fileid | Set file unique identifier
DB_MPOOLFILE->set_flags | General memory pool file configuration
DB_MPOOLFILE->set_ftype | Set file type
DB_MPOOLFILE->set_lsn_offset | Set file log-sequence-number offset
DB_MPOOLFILE->set_maxsize | Set maximum file size
DB_MPOOLFILE->set_pgcookie | Set file cookie for pgin/pgout
DB_MPOOLFILE->set_priority | Set memory pool file priority
DB_MPOOLFILE->sync | Flush pages from a file in a memory pool
db_sequence_create | Create a sequence handle
DB_SEQUENCE->close | Close a sequence
DB_SEQUENCE->get | Get the next sequence element(s)
DB_SEQUENCE->get_dbp | Return a handle for the underlying sequence database
DB_SEQUENCE->get_key | Return the key for a sequence
DB_SEQUENCE->initial_value | Set the initial value of a sequence
DB_SEQUENCE->open | Open a sequence
DB_SEQUENCE->remove | Remove a sequence
DB_SEQUENCE->set_cachesize | Set the cache size of a sequence
DB_SEQUENCE->set_flags | Set the flags for a sequence
DB_SEQUENCE->set_range | Set the range for a sequence
DB_SEQUENCE->stat | Return sequence statistics
DB_TXN->abort | Abort a transaction
DB_TXN->commit | Commit a transaction
DB_TXN->discard | Discard a prepared but not resolved transaction handle
DB_TXN->id | Return a transaction's ID
DB_TXN->prepare | Prepare a transaction for commit
DB_TXN->set_name | Associate a string with a transaction
DB_TXN->set_timeout | Set transaction timeout
db_strerror | Error strings
db_version | Return version information
log_compare | Compare two Log Sequence Numbers

Copyright (c) 1996,2007 Oracle. All rights reserved.