Berkeley DB: Reference Table of Contents
Enter your search terms
GNU-Darwin
Web
Submit search form
ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++">
Reference Table of Contents
Introduction
What is Berkeley DB?
Where does Berkeley DB run?
What does the Berkeley DB distribution include?
What can you do with Berkeley DB?
Getting Started: A Simple Tutorial
Introduction
Key/data pairs
Error returns
Opening a database
Adding elements to a database
Retrieving elements from a database
Removing elements from a database
Closing a database
Access Method Operations
Access method operations
Retrieving records
Storing records
Deleting records
Flushing the database cache
Database statistics
Closing a database
Database cursors
Retrieving records with a cursor
Storing records with a cursor
Deleting records with a cursor
Logical join
Closing a cursor
Partial Record Storing and Retrieval
Access Method Configuration
What are the available access methods?
Selecting an access method
Logical record numbers
General access method configuration
Selecting a page size (db_pagesize)
Selecting a cache size (db_cachesize)
Selecting a byte order (db_lorder)
Sorting duplicate data items (dup_compare)
Non-local memory allocation (db_malloc)
B+tree access method specific configuration
Btree comparison function (bt_compare)
Btree prefix function (bt_prefix)
Minimum keys per page (bt_minkey)
Maximum keys per page (bt_maxkey)
Duplicate data items (DB_DUP)
Retrieving Btree records by logical record number (DB_RECNUM)
Hash access method specific configuration
Page fill factor (h_ffactor)
Specifying your own hashing function (h_hash)
Hash table size (h_nelem)
Duplicate data items (DB_DUP)
Recno access method specific configuration
Record delimiters (re_delim, DB_DELIMITER)
Record length (re_len, DB_FIXEDLEN)
Record padding byte value (re_pad, DB_PAD)
Record backing file (re_source, DB_SNAPSHOT)
Logically renumbering records (DB_RENUMBER)
Berkeley DB Architecture
The big picture
Environment
Subsystems
Supporting utilities
Application architectural issues
Programming model
Available APIs
Scripting languages
Extending Berkeley DB
The Berkeley DB Environment
Creating an environment
Opening databases within the environment
File naming
Security
Shared memory regions
Berkeley DB Concurrent Access Methods Applications
Building concurrent access method applications
Berkeley DB Transactional Access Methods Applications
Introduction
Building transaction protected applications
Administration
Deadlock detection
Performing checkpoints
Archival procedures
Recovery procedures
Recovery and filesystem operations
Transaction throughput
Programmer Notes
Application signal handling
Error returns to applications
Building multi-threaded applications
Java programming notes
Environmental variables
Library version information
Database limits
Byte ordering
Compatibility with historic interfaces
Integrating version 1.85 applications
Run-time configuration
The Transaction Subsystem
Berkeley DB and transactions
Transaction restrictions
Cursor stability
Transaction limits
Configuring transactions
Transactions and non-Berkeley DB applications
The Memory Pool Subsystem
Berkeley DB and the memory pool
Configuring the memory pool
The Locking Subsystem
Berkeley DB and locking
Page Locks
Standard lock modes
Two-phase locking using transactions
Two-phase locking without transactions
Deadlocks and deadlock avoidance
Configuring locking
Locking and non-Berkeley DB applications
The Logging Subsystem
Berkeley DB and logging
Log file limits
Configuring logging
Dumping and Reloading Databases
The db_dump and db_load utilities
Dump output formats
Loading text into databases
Perl
Using Berkeley DB with Perl
Sendmail
Using Berkeley DB with Sendmail
System Installation Notes
File utility /etc/magic information
Debugging Applications
Run-time error information.
Displaying and interpreting the log
Including operation information in the log