BerkeleyDB Namespace

Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
BerkeleyDB Namespace

# Classes

| Class | Description
--- | --- | ---
| AckPolicy | The AckPolicy class specifies how master and client sites will handle acknowledgment of replication messages which are necessary for "permanent" records. The current implementation requires all sites in a replication group configure the same acknowledgement policy.
| ActiveTransaction | The ActiveTransaction class describes a currently active transaction.
| BadSecondaryException | A secondary index has been corrupted. This is likely the result of an application operating on related databases without first associating them.
| BaseCursor | The abstract base class from which all cursor classes inherit. Cursors may span threads, but only serially, that is, the application must serialize access to the cursor handle.
| BaseDatabase | The base class from which all database classes inherit
| BTreeCursor | A class for traversing the records of a BTreeDatabase
| BTreeDatabase | A class representing a BTreeDatabase. The Btree format is a representation of a sorted, balanced tree structure.
| BTreeDatabaseConfig | A class representing configuration parameters for BTreeDatabase
| BTreeStats | Statistical information about a BTreeDatabase
| ByteOrder | A class to represent the database byte order.
| CacheInfo | A class to represent information about the Berkeley DB cache
| CachePriority | A class to represent cache priority for database pages
| CompactConfig | A class to represent configuration settings for Compact(CompactConfig) and Compact(CompactConfig).
| CompactData | A class for representing compact operation statistics
| Cursor | A class representing database cursors, which allow for traversal of database records.
| CursorConfig | A class representing configuration parameters for Cursor
| Database | A class representing a Berkeley DB database, a base class for access method specific classes.
| DatabaseConfig | A class representing configuration parameters for Database
| DatabaseEntry | A class representing a key or data item in a Berkeley DB database
| DatabaseEnvironment | A class representing a Berkeley DB database environment - a collection including support for some or all of caching, locking, logging and transaction subsystems, as well as databases and log files.
| DatabaseEnvironmentConfig | A class representing configuration parameters for DatabaseEnvironment
| DatabaseException | Represents errors that occur during Berkley DB operations.
| DatabaseType | A class representing the supported Berkeley DB access methods.
| DbThreadID | A class representing a unique identifier for a thread of control in a Berkeley DB application.
| DeadlockException | When multiple threads of control are modifying the database, there is normally the potential for deadlock. In Berkeley DB, deadlock is signified by a DeadlockException thrown from the Berkeley DB function. Whenever a Berkeley DB function throws a DeadlockException, the enclosing transaction should be aborted.
| DeadlockPolicy | A class to represent what lock request(s) should be rejected during deadlock resolution.
| ErrorCodes | Constants representing error codes returned by the Berkeley DB library.
| ForeignConflictException |
| FullLogBufferException | In-memory logs are configured and no more log buffer space is available.
| HashCursor | A class for traversing the records of a HashDatabase
| HashDatabase | A class representing a HashDatabase. The Hash format is an extensible, dynamic hashing scheme.
| HashDatabaseConfig | A class representing configuration parameters for HashDatabase
| HashStats | Statistical information about a HashDatabase
| JoinCursor | A class representing a join cursor, for use in performing equality or natural joins on secondary indices. For information on how to organize your data to use this functionality, see Equality join in the Programmer's Reference Guide.
| KeyEmptyException | The requested key/data pair logically exists but was never explicitly created by the application, or that the requested key/data pair was deleted and never re-created. In addition, the Queue access method will throw a KeyEmptyException for records that were created as part of a transaction that was later aborted and never re-created.
| KeyExistException | A key/data pair was inserted into the database using PutNoOverwrite(DatabaseEntry, DatabaseEntry) and the key already exists in the database, or using PutNoDuplicate(DatabaseEntry, DatabaseEntry) or PutNoDuplicate(DatabaseEntry, DatabaseEntry) and the key/data pair already exists in the database.
| KeyRange | A class representing an estimate of the proportion of keys that are less than, equal to, and greater than a given key. Values are in the range of 0 to 1; for example, if the field less is 0.05, 5% of the keys in the database are less than the key parameter. The value for equal will be zero if there is no matching key, and will be non-zero otherwise.
| LeaseExpiredException | The site's replication master lease has expired.
| LockingConfig | A class representing configuration parameters for a DatabaseEnvironment's locking subsystem.
| LockingInfo | A class representing the locking options for Berkeley DB operations.
| LockNotGrantedException | If TimeNotGranted is true, database calls timing out based on lock or transaction timeout values will throw a LockNotGrantedException, instead of a DeadlockException.
| LockStats | Statistical information about the locking subsystem
| LogConfig | A class representing configuration parameters for a DatabaseEnvironment's logging subsystem.
| LogStats | Statistical information about the logging subsystem
| LSN | A log sequence number, which specifies a unique location in a log file.
| MPoolConfig | A class representing configuration parameters for a DatabaseEnvironment's memory pool subsystem.
| MPoolFileStats | Statistical information about a file in the memory pool
| MPoolStats | Statistical information about the memory pool subsystem
| MultipleDatabaseEntry | A class providing access to multiple DatabaseEntry objects.
| MultipleKeyDatabaseEntry | A class providing access to multiple key/data pairs.
| MutexConfig | A class representing configuration parameters for a DatabaseEnvironment's mutex subsystem.
| MutexStats | Statistical information about the mutex subsystem
| NotFoundException | The requested key/data pair did not exist in the database or that start-of- or end-of-file has been reached by a cursor.
| OldVersionException | This version of Berkeley DB is unable to upgrade a given database.
| PageNotFoundException |
| PreparedTransaction | A class representing a transaction that must be resolved by the application following Recover(UInt32, Boolean).
| QueueDatabase | A class representing a QueueDatabase. The Queue format supports fast access to fixed-length records accessed sequentially or by logical record number.
| QueueDatabaseConfig | A class representing configuration parameters for QueueDatabase
| QueueStats | Statistical information about a QueueDatabase
| RecnoCursor | A class for traversing the records of a RecnoDatabase
| RecnoDatabase | A class representing a RecnoDatabase. The Recno format supports fixed- or variable-length records, accessed sequentially or by logical record number, and optionally backed by a flat text file.
| RecnoDatabaseConfig | A class representing configuration parameters for RecnoDatabase
| RecnoStats | Statistical information about a RecnoDatabase
| ReplicationConfig | A class representing configuration parameters for a DatabaseEnvironment's replication subsystem.
| ReplicationHostAddress | A class representing the address of a replication site used by Berkeley DB HA.
| ReplicationStats | Statistical information about the replication subsystem
| RepMgrSite | A class representing a replication site used by Replication Manager
| RepMgrStats | Statistical information about the Replication Manager
| RepProcMsgResult | A class representing the return value of RepProcessMessage(DatabaseEntry, DatabaseEntry, Int32).
| RunRecoveryException | Berkeley DB has encountered an error it considers fatal to an entire environment. Once a RunRecoveryException has been thrown by any interface, it will be returned from all subsequent Berkeley DB calls made by any threads of control participating in the environment.
| SecondaryBTreeDatabase | A class representing a SecondaryBTreeDatabase. The Btree format is a representation of a sorted, balanced tree structure.
| SecondaryBTreeDatabaseConfig | A class representing configuration parameters for SecondaryBTreeDatabase
| SecondaryCursor | A class representing database cursors over secondary indexes, which allow for traversal of database records.
| SecondaryDatabase | A class representing a secondary Berkeley DB database, a base class for access method specific classes.
| SecondaryDatabaseConfig | A class representing configuration parameters for SecondaryDatabase
| SecondaryHashDatabase | A class representing a SecondaryHashDatabase. The Hash format is an extensible, dynamic hashing scheme.
| SecondaryHashDatabaseConfig | A class representing configuration parameters for SecondaryHashDatabase
| SecondaryQueueDatabase | A class representing a SecondaryQueueDatabase. The Queue format supports fast access to fixed-length records accessed sequentially or by logical record number.
| SecondaryQueueDatabaseConfig | A class representing configuration parameters for SecondaryQueueDatabase
| SecondaryRecnoDatabase | A class representing a RecnoDatabase. The Recno format supports fixed- or variable-length records, accessed sequentially or by logical record number, and optionally backed by a flat text file.
| SecondaryRecnoDatabaseConfig | A class representing configuration parameters for RecnoDatabase
| Sequence | A class that provides an arbitrary number of persistent objects that return an increasing or decreasing sequence of integers.
| SequenceConfig | Configuration properties for a Sequence
| SequenceStats | Statistical information about a Sequence
| Transaction | A class representing Berkeley DB transactions
| TransactionConfig | A class representing configuration parameters for a Transaction.
| TransactionStats | Statistical information about the transaction subsystem
| VerboseMessages | Enable specific additional informational and debugging messages.
| VerificationException | Thrown by Verify(String, DatabaseConfig) if a database is corrupted, and by Salvage(String, DatabaseConfig) if all key/data pairs in the file may not have been successfully output.
| VersionMismatchException | The version of the Berkeley DB library doesn't match the version that created the database environment.

# Delegates

| Delegate | Description
--- | --- | ---
| AppendRecordDelegate | A function to call after the record number has been selected but before the data has been stored into the database.
| BTreeCompressDelegate | A function to store a compressed key/data pair into a supplied buffer.
| BTreeDecompressDelegate | A function to decompress a key/data pair from a supplied buffer.
| DatabaseFeedbackDelegate | The application-specified feedback function called to report Berkeley DB operation progress.
| EntryComparisonDelegate | An application-specified comparison function.
| EnvironmentFeedbackDelegate | The application-specified feedback function called to report Berkeley DB operation progress.
| ErrorFeedbackDelegate | The application-specified error reporting function.
| EventNotifyDelegate | The application's event notification function.
| ForeignKeyNullifyDelegate |
| HashFunctionDelegate | The application-specified hash function.
| ReplicationTransportDelegate | The function used to transmit data using the replication application's communication infrastructure.
| SecondaryKeyGenDelegate | The function that creates the set of secondary keys corresponding to a given primary key and data pair.
| SetThreadIDDelegate | A function which returns a unique identifier pair for a thread of control in a Berkeley DB application.
| SetThreadNameDelegate | A function which returns an identifier pair for a thread of control formatted for display.
| ThreadIsAliveDelegate | A function which returns whether the thread of control, identified by info, is still running.

# Enumerations

| Enumeration | Description
--- | --- | ---
| ActiveTransaction..::.TransactionStatus | The status of an active transaction.
| CreatePolicy | The policy for how to handle database creation.
| Cursor..::.InsertLocation | Specifies where to place duplicate data elements of the key to which the cursor refers.
| Database..::.VerifyOperation | Specifies the type of verification to perform
| DatabaseFeedbackEvent | Specifies the database operation whose progress is being reported
| DuplicatesPolicy | Policy for duplicate data items in the database; that is, whether insertion when the key of the key/data pair being inserted already exists in the database will be successful.
| EncryptionAlgorithm | Specifies an algorithm used for encryption and decryption
| EnvironmentFeedbackEvent | Specifies the environment operation whose progress is being reported
| ForeignKeyDeleteAction | Specifies the action to take when deleting a foreign key
| Isolation | Specify the degree of isolation for transactional operations
| NotificationEvent | Specify a Berkeley DB event
| RepProcMsgResult..::.ProcMsgResult | The result of processing an incoming replication message.
| TransactionConfig..::.LogFlush | Specifies the log flushing behavior on transaction commit