summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-05-13 16:46:16 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2015-05-13 16:46:16 +1000
commit6237ef264deed60b632baded76e93917997070fa (patch)
tree0d7e9715d60c36eb9526b0a3861d74a0f9dcbfcb /lang
parent7609a565a11952c2ca14642dc2c837552dc1e86a (diff)
parentd6d869f4ae2f8e4427951686e69ec405e94bad5c (diff)
downloadmongo-6237ef264deed60b632baded76e93917997070fa.tar.gz
Merge branch 'develop' into named-snapshots
Conflicts: dist/api_data.py src/config/config_def.c src/include/config.h src/txn/txn.c
Diffstat (limited to 'lang')
-rw-r--r--lang/java/java_doc.i1
-rw-r--r--lang/java/wiredtiger.i2
-rw-r--r--lang/python/wiredtiger.i16
3 files changed, 15 insertions, 4 deletions
diff --git a/lang/java/java_doc.i b/lang/java/java_doc.i
index f7cc86278f3..0a13824cb9d 100644
--- a/lang/java/java_doc.i
+++ b/lang/java/java_doc.i
@@ -56,6 +56,7 @@ COPYDOC(__wt_connection, WT_CONNECTION, load_extension)
COPYDOC(__wt_connection, WT_CONNECTION, add_data_source)
COPYDOC(__wt_connection, WT_CONNECTION, add_collator)
COPYDOC(__wt_connection, WT_CONNECTION, add_compressor)
+COPYDOC(__wt_connection, WT_CONNECTION, add_encryptor)
COPYDOC(__wt_connection, WT_CONNECTION, add_extractor)
COPYDOC(__wt_config_parser, WT_CONFIG_PARSER, close)
COPYDOC(__wt_config_parser, WT_CONFIG_PARSER, next)
diff --git a/lang/java/wiredtiger.i b/lang/java/wiredtiger.i
index a92247c7ebf..2d66a4e9e13 100644
--- a/lang/java/wiredtiger.i
+++ b/lang/java/wiredtiger.i
@@ -1743,6 +1743,8 @@ WT_ASYNC_CALLBACK javaApiAsyncHandler = {javaAsyncHandler};
%ignore __wt_connection::add_compressor;
%ignore __wt_data_source;
%ignore __wt_connection::add_data_source;
+%ignore __wt_encryptor;
+%ignore __wt_connection::add_encryptor;
%ignore __wt_event_handler;
%ignore __wt_extractor;
%ignore __wt_connection::add_extractor;
diff --git a/lang/python/wiredtiger.i b/lang/python/wiredtiger.i
index c46fd6d24a6..3f297ca25a0 100644
--- a/lang/python/wiredtiger.i
+++ b/lang/python/wiredtiger.i
@@ -31,10 +31,16 @@
* The SWIG interface file defining the wiredtiger python API.
*/
%define DOCSTRING
-"@defgroup wt_python WiredTiger Python API
-Python wrappers aroung the WiredTiger C API.
-@{
-@cond IGNORE"
+"Python wrappers around the WiredTiger C API
+
+This provides an API similar to the C API, with the following modifications:
+ - Many C functions are exposed as OO methods. See the Python examples and test suite
+ - Errors are handled in a Pythonic way; wrap calls in try/except blocks
+ - Cursors have extra accessor methods and iterators that are higher-level than the C API
+ - Statistics cursors behave a little differently and are best handled using the C-like functions
+ - C Constants starting with WT_STAT_DSRC are instead exposed under wiredtiger.stat.dsrc
+ - C Constants starting with WT_STAT_CONN are instead exposed under wiredtiger.stat.conn
+"
%enddef
%module(docstring=DOCSTRING) wiredtiger
@@ -917,6 +923,7 @@ int verbose_build();
%ignore __wt_compressor;
%ignore __wt_config_item;
%ignore __wt_data_source;
+%ignore __wt_encryptor;
%ignore __wt_event_handler;
%ignore __wt_extractor;
%ignore __wt_item;
@@ -925,6 +932,7 @@ int verbose_build();
%ignore __wt_connection::add_collator;
%ignore __wt_connection::add_compressor;
%ignore __wt_connection::add_data_source;
+%ignore __wt_connection::add_encryptor;
%ignore __wt_connection::add_extractor;
%ignore __wt_connection::get_extension_api;
%ignore __wt_session::log_printf;