Python wrapper around C ::__WT_CONNECTION. More...
Public Member Functions | |
| def | load_extension |
| load_extension(self, path, config) -> int | |
| def | close |
| close(self, config) -> int | |
| def | get_home |
| get_home(self) -> string | |
| def | is_new |
| is_new(self) -> int | |
| def | open_session |
| open_session(self, config) -> int | |
| def | __init__ |
| __init__(self) -> Connection | |
Public Attributes | |
| this | |
Python wrapper around C ::__WT_CONNECTION.
| def wiredtiger.Connection.close | ( | self, | |
| args | |||
| ) |
close(self, config) -> int
| def wiredtiger.Connection.get_home | ( | self, | |
| args | |||
| ) |
get_home(self) -> string
The home directory of the connection.
printf("The database home is %s\n", conn->get_home(conn));
| connection | the connection handle |
| def wiredtiger.Connection.is_new | ( | self, | |
| args | |||
| ) |
is_new(self) -> int
Return if opening this handle created the database.
if (conn->is_new(conn)) { /* First time initialization. */ }
| connection | the connection handle |
| def wiredtiger.Connection.load_extension | ( | self, | |
| args | |||
| ) |
load_extension(self, path, config) -> int
Load an extension.
ret = conn->load_extension(conn, "my_extension.dll", NULL);
| connection | the connection handle | |||||||||
| path | the filename of the extension module | |||||||||
| config | Configuration string, see Configuration Strings. Permitted values:
|
| def wiredtiger.Connection.open_session | ( | self, | |
| args | |||
| ) |
open_session(self, config) -> int
Open a session.
WT_SESSION *session; ret = conn->open_session(conn, NULL, NULL, &session);
| connection | the connection handle |
| errhandler | An error handler. If NULL, the connection's error handler is used |
| config | Configuration string, see Configuration Strings. No values currently permitted. |
| sessionp | the new session handle |