A connection to a WiredTiger database. More...
Public Member Functions | |
| synchronized void | delete () |
| int | close (String config) |
| Close a connection. More... | |
| int | reconfigure (String config) |
| Reconfigure a connection handle. More... | |
| String | get_home () |
| int | configure_method (String method, String uri, String config, String type, String check) |
| Add configuration options for a method. More... | |
| int | is_new () |
| Return if opening this handle created the database. More... | |
| int | load_extension (String path, String config) |
| Load an extension. More... | |
| Session | open_session (String config) |
Protected Member Functions | |
| Connection (long cPtr, boolean cMemoryOwn) | |
Static Protected Member Functions | |
| static long | getCPtr (Connection obj) |
Protected Attributes | |
| boolean | swigCMemOwn |
A connection to a WiredTiger database.
The connection may be opened within the same address space as the caller or accessed over a socket connection.
Most applications will open a single connection to a database for each process. The first process to open a connection to a database will access the database in its own address space. Subsequent connections (if allowed) will communicate with the first process over a socket connection to perform their operations.
Thread safety: A WT_CONNECTION handle may be shared between threads, see Multithreading for more information.
| int com.wiredtiger.db.Connection.close | ( | String | config) |
Close a connection.
Any open sessions will be closed.
| connection | the connection handle |
| config | Configuration string, see Configuration Strings. No values currently permitted. |
| int com.wiredtiger.db.Connection.configure_method | ( | String | method, |
| String | uri, | ||
| String | config, | ||
| String | type, | ||
| String | check | ||
| ) |
Add configuration options for a method.
See Creating data-specific configuration strings for more information.
| connection | the connection handle |
| method | the name of the method |
| uri | the object type or NULL for all object types |
| config | the additional configuration's name and default value |
| type | the additional configuration's type (must be one of "boolean"\, "int", "list" or "string") |
| check | the additional configuration check string, or NULL if none |
| int com.wiredtiger.db.Connection.is_new | ( | ) |
Return if opening this handle created the database.
| connection | the connection handle |
| int com.wiredtiger.db.Connection.load_extension | ( | String | path, |
| String | config | ||
| ) |
Load an extension.
| connection | the connection handle | ||||||||||||
| path | the filename of the extension module | ||||||||||||
| config | Configuration string, see Configuration Strings. Permitted values:
|
| int com.wiredtiger.db.Connection.reconfigure | ( | String | config) |
Reconfigure a connection handle.
| connection | the connection handle | |||||||||||||||||||||||||||||||||||||||||||||
| config | Configuration string, see Configuration Strings. Permitted values:
|