Berkeley DB: C Interface by Function/Structure
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++

# C Interface by Function/Structure

Database Environments | Description
--- | ---
db_env_create | Create an environment handle
DBENV->close | Close an environment
DBENV->err | Error message with error string
DBENV->errx | Error message
DBENV->open | Open an environment
DBENV->remove | Remove an environment
DBENV->set_cachesize | Set the environment cache size
DBENV->set_errcall | Set error message callback
DBENV->set_errfile | Set error message FILE *
DBENV->set_errpfx | Set error message prefix
DBENV->set_feedback | Set feedback callback
DBENV->set_paniccall | Set panic callback
DBENV->set_recovery_init | Set recovery initialization callback
DBENV->set_region_init | Fault in shared regions on initial access
DBENV->set_server | Establish server connection
DBENV->set_tas_spins | Set the number of test-and-set spins
DBENV->set_verbose | Set verbose messages
db_strerror | Error strings
db_version | Return version information
Database Operations | Description
db_create | Create a database handle
DB->close | Close a database
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->open | Open a database
DB->put | Store items into a database
DB->remove | Remove a database
DB->set_bt_compare | Specify a Btree comparison function
DB->set_bt_minkey | Set the minimum number of keys per Btree page
DB->set_bt_prefix | Specify a Btree prefix comparison function
DB->set_cachesize | Set the database cache size
DB->set_dup_compare | Specify a duplicate comparison function
DB->set_errcall | Set error message callback
DB->set_errfile | Set error message FILE *
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 | Specify a hashing function
DB->set_h_nelem | Set the Hash table size
DB->set_lorder | Set the database byte order
DB->set_malloc | Specify a local space allocation function
DB->set_pagesize | Set the underlying database page size
DB->set_paniccall | Set panic callback
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->set_realloc | Specify a local space allocation function
DB->stat | Return database statistics
DB->sync | Flush a database to stable storage
DB->upgrade | Upgrade a database
Database Cursors | Description
DB->cursor | Open a cursor into a database
DBcursor->c_close | Close a cursor
DBcursor->c_count | Return count of duplicates
DBcursor->c_del | Delete by cursor
DBcursor->c_dup | Duplicate a cursor
DBcursor->c_get | Retrieve by cursor
DBcursor->c_put | Store by cursor
Lock Managers | Description
DBENV->set_lk_conflicts | Set lock conflicts matrix
DBENV->set_lk_detect | Set automatic deadlock detection
DBENV->set_lk_max | Set maximum number of locks
lock_detect | Perform deadlock detection
lock_get | Acquire a lock
lock_id | Acquire a locker ID
lock_put | Release a lock
lock_stat | Return lock subsystem statistics
lock_vec | Acquire/release locks
Log Managers | Description
DBENV->set_lg_bsize | Set log buffer size
DBENV->set_lg_max | Set log file size
log_archive | List log and database files
log_compare | Compare two Log Sequence Numbers
log_file | Map Log Sequence Numbers to log files
log_flush | Flush log records
log_get | Get a log record
log_put | Write a log record
log_register | Register a file name with the log manager
log_stat | Return log subsystem statistics
log_unregister | Unregister a file name with the log manager
Buffer Pools | Description
DBENV->set_cachesize | Set the environment cache size
DBENV->set_mp_mmapsize | Set maximum mapped-in database file size
memp_fclose | Close a file in a buffer pool
memp_fget | Get a page from a file in a buffer pool
memp_fopen | Open a file in a buffer pool
memp_fput | Return a page to a buffer pool
memp_fset | Modify meta information for buffer pool page
memp_fsync | Flush pages from a file in a buffer pool
memp_register | Register input/output functions for a file in a buffer pool
memp_stat | Return buffer pool statistics
memp_sync | Flush pages from a buffer pool
memp_trickle | Trickle flush pages from a buffer pool
Transaction Managers | Description
DBENV->set_tx_max | Set maximum number of transactions
DBENV->set_tx_recover | Set transaction abort recover function
txn_abort | Abort a transaction
txn_begin | Begin a transaction
txn_checkpoint | Checkpoint the transaction subsystem
txn_commit | Commit a transaction
txn_id | Return a transaction ID
txn_prepare | Prepare a transaction for commit
txn_stat | Return transaction subsystem statistics
Historic Interfaces | Description
dbm | UNIX Dbm/Ndbm Interfaces
hsearch | UNIX Hsearch Interfaces
Data Structures | Description
DBT | DBT structures
DB_LSN | DB_LSN structures
DB Library Configuration | Description
DBENV->set_func_close | Replace underlying Berkeley DB system interfaces
DBENV->set_func_dirfree |
DBENV->set_func_dirlist |
DBENV->set_func_exists |
DBENV->set_func_free |
DBENV->set_func_fsync |
DBENV->set_func_ioinfo |
DBENV->set_func_malloc |
DBENV->set_func_map |
DBENV->set_func_open |
DBENV->set_func_read |
DBENV->set_func_realloc |
DBENV->set_func_rename |
DBENV->set_func_seek |
DBENV->set_func_sleep |
DBENV->set_func_unlink |
DBENV->set_func_unmap |
DBENV->set_func_write |
DBENV->set_func_yield |
DBENV->set_mutexlocks | Turn off mutual exclusion locking
DBENV->set_pageyield | Yield the processor on each page access

Copyright Sleepycat Software