Version 2.4.1
WiredTiger Extension API

The functions and interfaces applications use to customize and extend the behavior of WiredTiger. More...

Classes

struct  WT_COLLATOR
 The interface implemented by applications to provide custom ordering of records. More...
 
struct  WT_COMPRESSOR
 The interface implemented by applications to provide custom compression. More...
 
struct  WT_DATA_SOURCE
 Applications can extend WiredTiger by providing new implementations of the WT_DATA_SOURCE class. More...
 
struct  WT_EXTRACTOR
 The interface implemented by applications to provide custom extraction of index keys or column group values. More...
 
struct  WT_TXN_NOTIFY
 Snapshot isolation level, returned by WT_EXTENSION_API::transaction_isolation_level. More...
 
struct  WT_EXTENSION_API
 Table of WiredTiger extension methods. More...
 

Macros

#define WT_TXN_ISO_READ_COMMITTED
 Read-committed isolation level, returned by WT_EXTENSION_API::transaction_isolation_level.
 
#define WT_TXN_ISO_READ_UNCOMMITTED
 Read-uncommitted isolation level, returned by WT_EXTENSION_API::transaction_isolation_level.
 
#define WT_TXN_ISO_SNAPSHOT
 Snapshot isolation level, returned by WT_EXTENSION_API::transaction_isolation_level.
 

Typedefs

typedef struct WT_CONFIG_ARG WT_CONFIG_ARG
 A configuration object passed to some extension interfaces. More...
 

Functions

int wiredtiger_extension_init (WT_CONNECTION *connection, WT_CONFIG_ARG *config)
 Entry point to an extension, called when the extension is loaded. More...
 
int wiredtiger_extension_terminate (WT_CONNECTION *connection)
 Optional cleanup function for an extension, called during WT_CONNECTION::close. More...
 

Detailed Description

The functions and interfaces applications use to customize and extend the behavior of WiredTiger.

Typedef Documentation

A configuration object passed to some extension interfaces.

This is an opaque type: configuration values can be queried using WT_EXTENSION_API::config_get

Function Documentation

int wiredtiger_extension_init ( WT_CONNECTION connection,
WT_CONFIG_ARG config 
)

Entry point to an extension, called when the extension is loaded.

Parameters
connectionthe connection handle
configthe config information passed to WT_CONNECTION::load_extension
Returns
zero on success and a non-zero error code on failure. See Error Returns for details.
int wiredtiger_extension_terminate ( WT_CONNECTION connection)

Optional cleanup function for an extension, called during WT_CONNECTION::close.

Parameters
connectionthe connection handle
Returns
zero on success and a non-zero error code on failure. See Error Returns for details.