C Interface by Function/Structure

Database EnvironmentDescription
db_env_createCreate an environment handle
DB_ENV->closeClose an environment
DB_ENV->errError message with error string
DB_ENV->errxError message
DB_ENV->openOpen an environment
DB_ENV->removeRemove an environment
DB_ENV->set_allocSet local space allocation functions
DB_ENV->set_cachesizeSet the environment cache size
DB_ENV->set_data_dirSet the environment data directory
DB_ENV->set_errcallSet error message callback
DB_ENV->set_errfileSet error message FILE
DB_ENV->set_errpfxSet error message prefix
DB_ENV->set_feedbackSet feedback callback
DB_ENV->set_flagsEnvironment configuration
DB_ENV->set_mutexlocksTurn off mutual exclusion locking
DB_ENV->set_paniccallSet panic callback
DB_ENV->set_recovery_initSet recovery initialization callback
DB_ENV->set_rpc_serverEstablish an RPC server connection
DB_ENV->set_shm_keySet system memory shared segment ID
DB_ENV->set_tmp_dirSet the environment temporary file directory
DB_ENV->set_verboseSet verbose messages
db_strerrorError strings
db_versionReturn version information
Database OperationsDescription
db_createCreate a database handle
DB->associateAssociate a secondary index
DB->closeClose a database
DB->delDelete items from a database
DB->errError message with error string
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_typeReturn the database type
DB->joinPerform a database join on cursors
DB->key_rangeReturn estimate of key location
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_errcallSet error message callback
DB->set_errfileSet error 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->statReturn database statistics
DB->syncFlush a database to stable storage
DB->truncateEmpty a database
DB->upgradeUpgrade a database
DB->verifyVerify/salvage a database
Database CursorsDescription
DB->cursorOpen a cursor into 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
Lock ManagerDescription
DB_ENV->set_lk_conflictsSet lock conflicts matrix
DB_ENV->set_lk_detectSet automatic deadlock detection
DB_ENV->set_lk_maxSet maximum number of locks (Deprecated)
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
lock_detectPerform deadlock detection
lock_getAcquire a lock
lock_idAcquire a locker ID
lock_putRelease a lock
lock_statReturn lock subsystem statistics
lock_vecAcquire/release locks
Log ManagerDescription
DB_ENV->set_lg_bsizeSet log buffer size
DB_ENV->set_lg_dirSet the environment logging directory
DB_ENV->set_lg_maxSet log file size
DB_ENV->set_lg_regionmaxSet logging region size
log_archiveList log and database files
log_compareCompare two Log Sequence Numbers
log_fileMap Log Sequence Numbers to log files
log_flushFlush log records
log_getGet a log record
log_putWrite a log record
log_registerRegister a filename with the log manager
log_statReturn log subsystem statistics
log_unregisterUnregister a filename with the log manager
Buffer PoolDescription
DB_ENV->set_cachesizeSet the environment cache size
DB_ENV->set_mp_mmapsizeSet maximum mapped-in database file size
memp_fcloseClose a file in a buffer pool
memp_fgetGet a page from a file in a buffer pool
memp_fopenOpen a file in a buffer pool
memp_fputReturn a page to a buffer pool
memp_fsetModify meta information for buffer pool page
memp_fsyncFlush pages from a file in a buffer pool
memp_registerRegister input/output functions for a file in a buffer pool
memp_statReturn buffer pool statistics
memp_syncFlush pages from a buffer pool
memp_trickleTrickle flush pages from a buffer pool
Transaction ManagerDescription
DB_ENV->set_tx_maxSet maximum number of transactions
DB_ENV->set_tx_recoverSet transaction abort recover function
DB_ENV->set_tx_timestampSet recovery timestamp
txn_abortAbort a transaction
txn_beginBegin a transaction
txn_checkpointCheckpoint the transaction subsystem
txn_commitCommit a transaction
txn_discardDiscard a prepared but not resolved transaction handle
txn_idReturn a transaction ID
txn_preparePrepare a transaction for commit
txn_recoverDistributed transaction recovery
txn_statReturn transaction subsystem statistics
Historic InterfacesDescription
dbmUNIX Dbm/Ndbm Interfaces
hsearchUNIX Hsearch Interfaces
Data StructuresDescription
DBTKey/Data Pairs
DB_LSNDB_LSN structures
DB Library ConfigurationDescription
db_env_set_pageyieldYield the processor on each page access
db_env_set_panicstateReset panic state
db_env_set_region_initFault in shared regions on initial access
db_env_set_tas_spinsSet the number of test-and-set spins
DB System Call ConfigurationDescription
db_env_set_func_closeReplace underlying Berkeley DB system interfaces

Copyright Sleepycat Software