Don Anderson
97befce992
WT-1985. Fixed a comment about 'U' unpacking so there is no confusion.
2015-07-13 13:52:16 -04:00
Don Anderson
544e9d1253
WT-1985. intpack-test.py and packing-test.py are now subsumed by
...
test/suite/test_intpack.py and test_pack.py .
2015-07-07 15:00:50 -04:00
Don Anderson
155fec24f6
Wt-1985. Fixes required by new packing tests:
...
Specifying 'u' as a format can result in a 'U' format appearing in
an index. The pack/unpack routines need to understand 'U'.
2015-07-07 14:57:55 -04:00
Don Anderson
3582893d8b
WT-1985. Fixed problems with integer packing in Python:
...
1) Applied special case from C code for POS_2BYTE_MAX + 1.
2) Handle B/b format chars directly. Up to now these would have
been encoded using default int encoding (so values above
63 get errors when encoding.
2015-06-30 22:07:51 -04:00
Susan LoVerso
d6a6c0506d
Merge branch 'develop' into encryption-api
...
Conflicts:
dist/api_data.py
src/config/config_def.c
src/include/config.h
2015-04-28 10:44:39 -04:00
Pat Gunn
2e2471f2ec
Fix a typo, add what will be a description section for pydoc
2015-04-25 23:05:50 -04:00
Susan LoVerso
e3a6209908
Merge branch 'develop' into encryption-api
2015-04-01 08:54:06 -04:00
Michael Cahill
674170067c
Add a __setitem__ to cursors in the Python API, remove lots of boilerplate c.set_key ... c.set_value ... c.insert code.
2015-03-31 14:26:00 +11:00
Don Anderson
f8cce524c9
Merge branch 'develop' into encryption-api
...
Conflicts:
dist/s_string.ok
2015-03-26 13:48:13 -04:00
Susan LoVerso
1c23661e87
More plumbing. #1822
2015-03-26 12:29:50 -04:00
Don Anderson
27269333ae
Added -I include paths as needed to handle #include <3rdparty/...>
2015-03-25 20:21:32 -04:00
Don Anderson
930f899ec5
Fixed python doc string in OVERRIDE_METHOD macro.
2015-01-22 11:38:24 -05:00
Don Anderson
4843cd78e7
Prepend underscores to methods that could have name conflicts
...
with WT internal names. These methods were exposed for conflict
because we created public C names by 'extending' classes in SWIG.
SWIG's wrapper naming for such methods apparently follows
a different convention than the usual "_wrap_<PythonName>_<FunctionName>",
and uses "<CTypeName>_<FunctionName", e.g. "__wt_cursor_equals".
Refs #1574 .
2015-01-22 10:40:11 -05:00
Michael Cahill
a30db47d03
Merge branch 'develop' into cursor-equal
...
Conflicts:
lang/python/wiredtiger.i
2015-01-17 07:33:37 +11:00
Michael Cahill
76addf7358
Have WT_CURSOR::equals return 1 when cursors are equal, 0 when not.
2015-01-17 05:48:03 +11:00
Alex Gorrod
812be6c438
Rename WT_CURSOR compare_equal to be equals.
...
While here, add a generic cursor equals stub in curstd, rather than
redirecting via cursor function pointer lists.
Implement the Java API wrapper.
2015-01-14 02:28:10 +11:00
Don Anderson
a82ddbe64a
Raise an exception for any error, including WT_NOTFOUND,
...
returned from CURSOR->compare.
2015-01-12 09:41:41 -05:00
Keith Bostic
f28cef19f4
Add support for the WT_CURSOR.compare_equal method.
2015-01-10 13:52:12 -05:00
Don Anderson
619d26de6f
Release Python's global lock (GIL) before sleeping to allow other
...
threads to grab the lock as needed.
2015-01-08 19:14:33 -05:00
Keith Bostic
1f9098871a
Copyright notices: add MongoDB, update to 2015.
2015-01-04 14:07:56 -05:00
Don Anderson
774ec4d399
Remove tabs in comments.
2014-12-16 16:02:44 -05:00
Don Anderson
dfa706056c
Some refactoring of python packing.
...
More checks for standalone unit tests.
Refs #1429 .
2014-12-16 15:58:34 -05:00
Keith Bostic
411a97bca2
Change the Python scripts to follow Python indenting standards (4 space
...
indents, spaces only).
2014-12-03 20:43:47 -05:00
Don Anderson
de0725b546
Allow unicode typed objects in Python with S/s formats. refs #1187 .
...
Includes tests that trigger the problem.
2014-11-12 15:06:36 -05:00
Michael Cahill
5d55a28121
Fix the Python check for a verbose build: it can't be a connection method, that's too late.
2014-10-18 14:24:21 +11:00
Michael Cahill
484c6ccd26
Add a "verbose=[transaction]" mode, output a message if a snapshot falls a long way behind. Add a test case that generates this message. Remember the last operation on a session after it leaves the library.
2014-10-18 13:51:07 +11:00
Michael Cahill
0a2e70dc30
Allow Python tests to detect whether verbose support is configured.
2014-10-18 13:51:07 +11:00
Alex Gorrod
2bca93d54b
Merge branch 'develop' into json-load
...
Conflicts:
dist/s_string.ok
src/include/extern.h
src/utilities/util_load.c
2014-10-15 11:47:13 +11:00
Keith Bostic
f91eda0933
Rename RELEASE to be RELEASE_INFO, avoid collision with MsBuild default
...
folder.
2014-10-01 20:53:59 -04:00
Alex Gorrod
89bbfdfd4e
Merge branch 'develop' into json-load
2014-09-19 15:39:05 +10:00
Michael Cahill
fedef3e83f
Rearrange the Python build so we generate object files under the build directory. Clean up manually: don't rely on setup.py.
...
refs #1188
2014-09-05 12:21:59 +10:00
Keith Bostic
eece553c0b
As far as I can tell, there's no "build" directory, so quit trying
...
to remove it, reference #1188 .
2014-09-04 07:58:20 -04:00
Keith Bostic
ed5c5d3389
Add wiredtiger_wrap.o to the clean-local label.
2014-09-04 07:41:32 -04:00
Keith Bostic
b2542b7800
Don't remove the wiredtiger directory, it has source code, reference #1188 .
2014-09-04 07:33:39 -04:00
Don Anderson
31ca4b33dd
Add JSON loading to cursors and wt load utility. refs #740 .
...
Allow set_key and set_value on JSON cursors. The argument is a string
that is interpreted as JSON and must match the format created by a JSON
dump cursor or the 'wt dump -j' command.
Add -j option to 'wt load' utility to allow loading JSON.
Small adjustment to Python interface so that JSON cursor key/values inputs
are always treated as strings.
Added doc and Python tests for JSON cursors and wt load -j.
2014-08-06 21:36:47 -04:00
Susan LoVerso
bc5d09e010
Document EBUSY and update python. #1153
2014-08-05 13:29:37 -04:00
Susan LoVerso
7d33c466cc
Merge branch 'develop' into log-cursor
2014-07-31 10:42:08 -04:00
Susan LoVerso
e15cee1738
Fix 0ffb202 and reinstate changes from e739089.
2014-07-30 13:14:06 -04:00
Keith Bostic
e739089508
The change in 0ffb202, it's not sufficient. Yank the test, it's not
...
interesting enough to keep.
2014-07-30 12:16:57 -04:00
Susan LoVerso
ba6b55fae2
Merge branch 'develop' into log-cursor
...
Conflicts:
src/config/config_def.c
2014-07-30 12:03:19 -04:00
Michael Cahill
0ffb202652
Add a way to skip tests that rely on diagnostic builds. Use that for the out-of-order bulk-load test.
2014-07-30 15:37:51 +10:00
Susan LoVerso
6f78c3d431
Ignore __wt_lsn in language interfaces. #1106
2014-07-15 15:49:55 -04:00
Susan LoVerso
af428ba90c
Revert languages to using lang_private.
2014-05-28 11:02:10 -04:00
Alex Gorrod
c904ad189f
Add an app_private field to the WT_ASYNC_OP handle.
2014-05-28 15:14:14 +10:00
Susan LoVerso
82bb27627b
Expose the private field with a macro.
2014-05-27 13:07:06 -04:00
Michael Cahill
151f14dace
Merge branch 'develop' into json-dump
...
Conflicts:
src/cursor/cur_std.c
src/include/cursor.h
src/include/packing.i
2014-05-08 14:33:51 +10:00
Michael Cahill
f146b172b0
Fix handling of raw cursors in the async API: always go through the {get,set}_raw calls, don't access key/value buffers directly.
2014-05-02 16:00:04 +10:00
Don Anderson
10b45b8a73
Python for async:
...
- Various fixes to allow test_async01.py to work for string key/value.
- Hand rolled AsyncCallback class to mirror C's WT_ASYNC_CALLBACK.
- Keep the async callback in the PY_CALLBACK struct hidden in cursor's
lang_private.
- Some cleanups in writeToPythonStream(), including fixing
potential race condition.
Java for async:
- Modified Java SWIG interfaces for async enough to allow it compile.
- Standardized class spelling to 'AsyncOp'.
- Removed a few non-applicable methods from AsyncOp.
2014-05-01 13:13:47 -04:00
Susan LoVerso
a6f934e04b
Merge branch 'develop' into async
2014-04-29 13:38:45 -04:00
Michael Cahill
ef86c8fe24
Remove Java and Python build rules that relied on "--enable-debug". Always require junit to test the Java build, and don't turn on the "-g" flag in the Python build: we're not debugging the glue code in general.
2014-04-24 08:37:09 +10:00