Berkeley DB: C Handle Methods (version 4.4.20)

C Handle MethodsDescription
db_createCreate a database handle
DB->associateAssociate a secondary index
DB->closeClose a database
DB->compactCompact a database
DB->cursorCreate a cursor
DB->delDelete items from a database
DB->err, DB->errxError message
DB->fdReturn a file descriptor from a database
DB->get, DB->pgetGet items from a database
DB->get_byteswappedReturn if the underlying database is in host order
DB->get_envReturn database environment handle
DB->get_mpfReturn underlying DB_MPOOLFILE handle
DB->get_typeReturn the database type
DB->joinPerform a database join on cursors
DB->key_rangeReturn estimate of key location
DB->get_mpfReturn the database's memory pool handle
DB->openOpen a database
DB->putStore items into a database
DB->removeRemove a database
DB->renameRename a database
DB->set_allocSet local space allocation functions
DB->set_append_recnoSet record append callback
DB->set_bt_compareSet a Btree comparison function
DB->set_bt_minkeySet the minimum number of keys per Btree page
DB->set_bt_prefixSet a Btree prefix comparison function
DB->set_cachesizeSet the database cache size
DB->set_dup_compareSet a duplicate comparison function
DB->set_encryptSet the database cryptographic key
DB->set_errcall, DB->set_msgcallSet error and informational message callback
DB->set_errfile, DB->set_msgfileSet error and informational message FILE
DB->set_errpfxSet error message prefix
DB->set_feedbackSet feedback callback
DB->set_flagsGeneral database configuration
DB->set_h_ffactorSet the Hash table density
DB->set_h_hashSet a hashing function
DB->set_h_nelemSet the Hash table size
DB->set_lorderSet the database byte order
DB->set_pagesizeSet the underlying database page size
DB->set_paniccallSet panic callback
DB->set_q_extentsizeSet Queue database extent size
DB->set_re_delimSet the variable-length record delimiter
DB->set_re_lenSet the fixed-length record length
DB->set_re_padSet the fixed-length record pad byte
DB->set_re_sourceSet the backing Recno text file
DB->stat, DB->stat_printDatabase statistics
DB->syncFlush a database to stable storage
DB->truncateEmpty a database
DB->upgradeUpgrade a database
DB->verifyVerify/salvage a database
DBcursor->c_closeClose a cursor
DBcursor->c_countReturn count of duplicates
DBcursor->c_delDelete by cursor
DBcursor->c_dupDuplicate a cursor
DBcursor->c_get, DBcursor->c_pgetRetrieve by cursor
DBcursor->c_putStore by cursor
db_env_createCreate an environment handle
DB_ENV->closeClose an environment
DB_ENV->dbremoveRemove a database
DB_ENV->dbrenameRename a database
DB_ENV->err, DB_ENV->errxError message
DB_ENV->failchkCheck for thread failure
DB_ENV->fileid_resetReset database file IDs
DB_ENV->get_homeReturn environment's home directory
DB_ENV->get_open_flagsReturn flags with which the environment was opened
DB_ENV->lock_detectPerform deadlock detection
DB_ENV->lock_getAcquire a lock
DB_ENV->lock_idAcquire a locker ID
DB_ENV->lock_id_freeRelease a locker ID
DB_ENV->lock_putRelease a lock
DB_ENV->lock_statReturn lock subsystem statistics
DB_ENV->lock_vecAcquire/release locks
DB_ENV->log_archiveList log and database files
DB_ENV->log_fileMap Log Sequence Numbers to log files
DB_ENV->log_flushFlush log records
DB_ENV->log_printfAppend informational message to the log
DB_ENV->log_putWrite a log record
DB_ENV->log_statReturn log subsystem statistics
DB_ENV->lsn_resetReset database file LSNs
DB_ENV->memp_fcreateCreate a memory pool file handle
DB_ENV->memp_registerRegister input/output functions for a file in a memory pool
DB_ENV->memp_statReturn memory pool statistics
DB_ENV->memp_syncFlush pages from a memory pool
DB_ENV->memp_trickleTrickle flush pages from a memory pool
DB_ENV->mutex_allocAllocate a mutex
DB_ENV->mutex_freeFree a mutex
DB_ENV->mutex_lockLock a mutex
DB_ENV->mutex_set_alignConfigure mutex alignment
DB_ENV->mutex_set_incrementConfigure number of additional mutexes
DB_ENV->mutex_set_maxConfigure total number of mutexes
DB_ENV->mutex_set_tas_spinsConfigure test-and-set mutex spin count
DB_ENV->mutex_statMutex statistics
DB_ENV->mutex_unlockUnlock a mutex
DB_ENV->openOpen an environment
DB_ENV->removeRemove an environment
DB_ENV->rep_electHold a replication election
DB_ENV->rep_process_messageProcess a replication message
DB_ENV->rep_set_configConfigure the replication subsystem
DB_ENV->rep_startConfigure an environment for replication
DB_ENV->rep_statReplication statistics
DB_ENV->rep_syncReplication synchronization
DB_ENV->set_allocSet local space allocation functions
DB_ENV->set_app_dispatchConfigure application recovery
DB_ENV->set_cachesizeSet the environment cache size
DB_ENV->set_data_dirSet the environment data directory
DB_ENV->set_encryptSet the environment cryptographic key
DB_ENV->set_errcall, DB_ENV->set_msgcallSet error and informational message callbacks
DB_ENV->set_errfile, DB_ENV->set_msgfileSet error and informational message FILE
DB_ENV->set_errpfxSet error message prefix
DB_ENV->set_feedbackSet feedback callback
DB_ENV->set_flagsEnvironment configuration
DB_ENV->set_isaliveSet thread is-alive callback
DB_ENV->set_lg_bsizeSet log buffer size
DB_ENV->set_lg_dirSet the environment logging directory
DB_ENV->set_lg_filemodeSet log file mode
DB_ENV->set_lg_maxSet log file size
DB_ENV->set_lg_regionmaxSet logging region size
DB_ENV->set_lk_conflictsSet lock conflicts matrix
DB_ENV->set_lk_detectSet automatic deadlock detection
DB_ENV->set_lk_max_lockersSet maximum number of lockers
DB_ENV->set_lk_max_locksSet maximum number of locks
DB_ENV->set_lk_max_objectsSet maximum number of lock objects
DB_ENV->set_mp_max_openfdSet the maximum number of open file descriptors
DB_ENV->set_mp_max_writeSet the maximum number of sequential disk writes
DB_ENV->set_mp_mmapsizeSet maximum mapped-in database file size
DB_ENV->set_paniccallSet panic callback
DB_ENV->set_rep_limitLimit data sent in response to a single message
DB_ENV->set_rep_transportConfigure replication transport
DB_ENV->set_rpc_serverEstablish an RPC server connection
DB_ENV->set_shm_keySet system memory shared segment ID
DB_ENV->set_thread_idSet thread of control ID function
DB_ENV->set_thread_id_stringSet thread of control ID format function
DB_ENV->set_timeoutSet lock and transaction timeout
DB_ENV->set_tmp_dirSet the environment temporary file directory
DB_ENV->set_tx_maxSet maximum number of transactions
DB_ENV->set_tx_timestampSet recovery timestamp
DB_ENV->set_verboseSet verbose messages
DB_ENV->stat_printEnvironment statistics
DB_ENV->txn_beginBegin a transaction
DB_ENV->txn_checkpointCheckpoint the transaction subsystem
DB_ENV->txn_recoverDistributed transaction recovery
DB_ENV->txn_statReturn transaction subsystem statistics
DB_ENV->log_cursorCreate a log cursor handle
DB_LOGC->closeClose a log cursor
DB_LOGC->getRetrieve a log record
DB_LSNLog Sequence Numbers
DB_MPOOLFILE->closeClose a file in a memory pool
DB_MPOOLFILE->getGet page from a file in a memory pool
DB_MPOOLFILE->openOpen a file in a memory pool
DB_MPOOLFILE->putReturn a page to a memory pool
DB_MPOOLFILE->setSet memory pool page attributes
DB_MPOOLFILE->set_clear_lenSet file page bytes to be cleared
DB_MPOOLFILE->set_fileidSet file unique identifier
DB_MPOOLFILE->set_flagsGeneral memory pool file configuration
DB_MPOOLFILE->set_ftypeSet file type
DB_MPOOLFILE->set_lsn_offsetSet file log-sequence-number offset
DB_MPOOLFILE->set_maxsizeSet maximum file size
DB_MPOOLFILE->set_pgcookieSet file cookie for pgin/pgout
DB_MPOOLFILE->set_prioritySet memory pool file priority
DB_MPOOLFILE->syncFlush pages from a file in a memory pool
db_sequence_createCreate a sequence handle
DB_SEQUENCE->closeClose a sequence
DB_SEQUENCE->getGet the next sequence element(s)
DB_SEQUENCE->get_dbpReturn a handle for the underlying sequence database
DB_SEQUENCE->get_keyReturn the key for a sequence
DB_SEQUENCE->initial_valueSet the initial value of a sequence
DB_SEQUENCE->openOpen a sequence
DB_SEQUENCE->removeRemove a sequence
DB_SEQUENCE->set_cachesizeSet the cache size of a sequence
DB_SEQUENCE->set_flagsSet the flags for a sequence
DB_SEQUENCE->set_rangeSet the range for a sequence
DB_SEQUENCE->statReturn sequence statistics
DB_TXN->abortAbort a transaction
DB_TXN->commitCommit a transaction
DB_TXN->discardDiscard a prepared but not resolved transaction handle
DB_TXN->idReturn a transaction's ID
DB_TXN->preparePrepare a transaction for commit
DB_TXN->set_nameAssociate a string with a transaction
DB_TXN->set_timeoutSet transaction timeout
db_strerrorError strings
db_versionReturn version information
log_compareCompare two Log Sequence Numbers

Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.