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 *name, int exclusive, const char *config) |
Callback to create a new object. | |
int(* | drop )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *name, const char *cfg[]) |
Callback to drop an object. | |
int(* | open_cursor )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *obj, const char *cfg[], WT_CURSOR **new_cursor) |
Callback to initialize a cursor. | |
int(* | rename )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *oldname, const char *newname, const char *cfg[]) |
Callback to rename an object. | |
int(* | truncate )(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *name, const char *cfg[]) |
Callback to truncate an object. | |
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.
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::create)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *name, int exclusive, const char *config) |
Callback to create a new object.
int(* WT_DATA_SOURCE::drop)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *name, const char *cfg[]) |
Callback to drop an object.
int(* WT_DATA_SOURCE::open_cursor)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *obj, const char *cfg[], WT_CURSOR **new_cursor) |
Callback to initialize a cursor.
int(* WT_DATA_SOURCE::rename)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *oldname, const char *newname, const char *cfg[]) |
Callback to rename an object.
int(* WT_DATA_SOURCE::truncate)(WT_DATA_SOURCE *dsrc, WT_SESSION *session, const char *name, const char *cfg[]) |
Callback to truncate an object.