C Interface by Function/Structure

Database EnvironmentDescription
db_env_createCreate an environment handle
DBENV->closeClose an environment
DBENV->errError message with error string
DBENV->errxError message
DBENV->openOpen an environment
DBENV->removeRemove an environment
DBENV->set_cachesizeSet the environment cache size
DBENV->set_data_dirSet the environment data directory
DBENV->set_errcallSet error message callback
DBENV->set_errfileSet error message FILE
DBENV->set_errpfxSet error message prefix
DBENV->set_feedbackSet feedback callback
DBENV->set_flagsEnvironment configuration
DBENV->set_mutexlocksTurn off mutual exclusion locking
DBENV->set_paniccallSet panic callback
DBENV->set_recovery_initSet recovery initialization callback
DBENV->set_serverEstablish server connection
DBENV->set_shm_keySet system memory shared segment ID
DBENV->set_tmp_dirSet the environment temporary file directory
DBENV->set_verboseSet verbose messages
db_strerrorError strings
db_versionReturn version information
Database OperationsDescription
db_createCreate a database handle
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->getGet 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_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_mallocSet a local space allocation function
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->set_reallocSet a local space allocation function
DB->statReturn database statistics
DB->syncFlush a database to stable storage
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_getRetrieve by cursor
DBcursor->c_putStore by cursor
Lock ManagerDescription
DBENV->set_lk_conflictsSet lock conflicts matrix
DBENV->set_lk_detectSet automatic deadlock detection
DBENV->set_lk_maxSet maximum number of locks (Deprecated)
DBENV->set_lk_max_locksSet maximum number of locks
DBENV->set_lk_max_lockersSet maximum number of lockers
DBENV->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
DBENV->set_lg_bsizeSet log buffer size
DBENV->set_lg_dirSet the environment logging directory
DBENV->set_lg_maxSet log file 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 file name with the log manager
log_statReturn log subsystem statistics
log_unregisterUnregister a file name with the log manager
Buffer PoolDescription
DBENV->set_cachesizeSet the environment cache size
DBENV->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
DBENV->set_tx_maxSet maximum number of transactions
DBENV->set_tx_recoverSet transaction abort recover function
DBENV->set_tx_timestampSet recovery timestamp
txn_abortAbort a transaction
txn_beginBegin a transaction
txn_checkpointCheckpoint the transaction subsystem
txn_commitCommit a transaction
txn_idReturn a transaction ID
txn_preparePrepare a transaction for commit
txn_statReturn transaction subsystem statistics
Historic InterfacesDescription
dbmUNIX Dbm/Ndbm Interfaces
hsearchUNIX Hsearch Interfaces
Data StructuresDescription
DBTDBT structures
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
db_env_set_func_dirfree
db_env_set_func_dirlist
db_env_set_func_exists
db_env_set_func_free
db_env_set_func_fsync
db_env_set_func_ioinfo
db_env_set_func_malloc
db_env_set_func_map
db_env_set_func_open
db_env_set_func_read
db_env_set_func_realloc
db_env_set_func_rename
db_env_set_func_seek
db_env_set_func_sleep
db_env_set_func_unlink
db_env_set_func_unmap
db_env_set_func_write
db_env_set_func_yield

Copyright Sleepycat Software