Applications can extend WiredTiger by providing new implementations of the WT_DATA_SOURCE class. More...
Public Attributes | |
int(* | create )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to create a new object. More... | |
int(* | compact )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to compact an object. More... | |
int(* | drop )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to drop an object. More... | |
int(* | open_cursor )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config, WT_CURSOR **new_cursor) |
Callback to initialize a cursor. More... | |
int(* | rename )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, const char *newuri, WT_CONFIG_ARG *config) |
Callback to rename an object. More... | |
int(* | salvage )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to salvage an object. More... | |
int(* | truncate )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to truncate an object. More... | |
int(* | range_truncate )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, WT_CURSOR *start, WT_CURSOR *stop) |
Callback to truncate a range of an object. More... | |
int(* | verify )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to verify an object. More... | |
int(* | checkpoint )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, WT_CONFIG_ARG *config) |
Callback to checkpoint the database. More... | |
int(* | terminate )(WT_DATA_SOURCE *dsrc, WT_SESSION *session) |
If non-NULL, a callback performed when the database is closed. More... | |
Applications can extend WiredTiger by providing new implementations of the WT_DATA_SOURCE class.
Each data source supports a different URI scheme for data sources to WT_SESSION::create, WT_SESSION::open_cursor and related methods. See Custom Data Sources for more information.
Thread safety: WiredTiger may invoke methods on the WT_DATA_SOURCE interface from multiple threads concurrently. It is the responsibility of the implementation to protect any shared data.
Applications register their implementation with WiredTiger by calling WT_CONNECTION::add_data_source.
int(* WT_DATA_SOURCE::checkpoint)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, WT_CONFIG_ARG *config) |
Callback to checkpoint the database.
int(* WT_DATA_SOURCE::compact)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to compact an object.
int(* WT_DATA_SOURCE::create)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to create a new object.
int(* WT_DATA_SOURCE::drop)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to drop an object.
int(* WT_DATA_SOURCE::open_cursor)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config, WT_CURSOR **new_cursor) |
Callback to initialize a cursor.
int(* WT_DATA_SOURCE::range_truncate)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, WT_CURSOR *start, WT_CURSOR *stop) |
Callback to truncate a range of an object.
int(* WT_DATA_SOURCE::rename)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, const char *newuri, WT_CONFIG_ARG *config) |
Callback to rename an object.
int(* WT_DATA_SOURCE::salvage)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to salvage an object.
int(* WT_DATA_SOURCE::terminate)(WT_DATA_SOURCE *dsrc, WT_SESSION *session) |
If non-NULL, a callback performed when the database is closed.
The WT_DATA_SOURCE::terminate callback is intended to allow cleanup, the handle will not be subsequently accessed by WiredTiger.
int(* WT_DATA_SOURCE::truncate)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to truncate an object.
int(* WT_DATA_SOURCE::verify)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *uri, WT_CONFIG_ARG *config) |
Callback to verify an object.