# C Interface by Function/Structure

Database Environment | 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_data_dir | Set the environment data directory
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_flags | Environment configuration
DBENV->set_mutexlocks | Turn off mutual exclusion locking
DBENV->set_paniccall | Set panic callback
DBENV->set_recovery_init | Set recovery initialization callback
DBENV->set_server | Establish server connection
DBENV->set_shm_key | Set system memory shared segment ID
DBENV->set_tmp_dir | Set the environment temporary file directory
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->key_range | Return estimate of key location
DB->open | Open a database
DB->put | Store items into a database
DB->remove | Remove a database
DB->rename | Rename a database
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_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 | Set a hashing function
DB->set_h_nelem | Set the Hash table size
DB->set_lorder | Set the database byte order
DB->set_malloc | Set a local space allocation function
DB->set_pagesize | Set the underlying database page size
DB->set_paniccall | Set panic callback
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->set_realloc | Set a local space allocation function
DB->stat | Return database statistics
DB->sync | Flush a database to stable storage
DB->upgrade | Upgrade a database
DB->verify | Verify/salvage 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 Manager | 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 (Deprecated)
DBENV->set_lk_max_locks | Set maximum number of locks
DBENV->set_lk_max_lockers | Set maximum number of lockers
DBENV->set_lk_max_objects | Set maximum number of lock objects
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 Manager | Description
DBENV->set_lg_bsize | Set log buffer size
DBENV->set_lg_dir | Set the environment logging directory
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 Pool | 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 Manager | Description
DBENV->set_tx_max | Set maximum number of transactions
DBENV->set_tx_recover | Set transaction abort recover function
DBENV->set_tx_timestamp | Set recovery timestamp
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
db_env_set_pageyield | Yield the processor on each page access
db_env_set_panicstate | Reset panic state
db_env_set_region_init | Fault in shared regions on initial access
db_env_set_tas_spins | Set the number of test-and-set spins
DB System Call Configuration | Description
db_env_set_func_close | Replace 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