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 | 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.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:
|