History log of /6.0.3/couchstore/python/ (Results 1 - 25 of 36)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: v6.0.3, v5.5.3, v5.1.2, v5.1.0, v5.0.0
7f77f3c827-Mar-2017 Dave Rigby <daver@couchbase.com>

couchstore.py: Check for couchstore err in getContents()

Check the return value of couchstore_open_doc_with_docinfo(), and
raise an exception on failure.

This makes any errors i

couchstore.py: Check for couchstore err in getContents()

Check the return value of couchstore_open_doc_with_docinfo(), and
raise an exception on failure.

This makes any errors in couchstore_open_doc_with_docinfo() explicit -
for example it will return

couchstore.CouchStoreException: checksum fail

instead of the more generic:

ValueError: NULL pointer access

in the event of a checksum failure in the file.

Change-Id: Ie5db90d25ecb5210b75c48c4ae027218696afc23
Reviewed-on: http://review.couchbase.org/84055
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>

show more ...

37e5404202-Feb-2017 Dave Rigby <daver@couchbase.com>

Python: Fix missing constant in example1.py

REV_META_PACK was not available from insert_multi. Also add usage
message.

Change-Id: Ifb32eb8e5cdf0a0fe6f458990328d3b5f947249e
R

Python: Fix missing constant in example1.py

REV_META_PACK was not available from insert_multi. Also add usage
message.

Change-Id: Ifb32eb8e5cdf0a0fe6f458990328d3b5f947249e
Reviewed-on: http://review.couchbase.org/73054
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>
Reviewed-by: Sriram Ganesan <sriram@couchbase.com>

show more ...

d063137f02-Feb-2017 Dave Rigby <daver@couchbase.com>

Python: Add example_read.py

Add a simple example program to read the given key(s) from a
couchstore file:

python python/example_read.py file.couch key_1234

Note it

Python: Add example_read.py

Add a simple example program to read the given key(s) from a
couchstore file:

python python/example_read.py file.couch key_1234

Note it run with buffering enabled or disabled by specifying the
--unbuffered option.

Change-Id: I4f236714529ff9c32105226c24e2e795b928086a
Reviewed-on: http://review.couchbase.org/73052
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

b45a596f02-Feb-2017 Dave Rigby <daver@couchbase.com>

couchstore.py: Allow CouchStore objects to disable io buffering

Add the optional 'unbuffered' flag to CouchStore __init__ method,
which allows iobuffering to be disabled.

Change

couchstore.py: Allow CouchStore objects to disable io buffering

Add the optional 'unbuffered' flag to CouchStore __init__ method,
which allows iobuffering to be disabled.

Change-Id: I2f56617ade4fc04f8251d3ff99fd2e77d111dc32
Reviewed-on: http://review.couchbase.org/73055
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Will Gardner <willg@rdner.io>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

Revision tags: v4.6.0, v4.6.0-DP, v4.5.1-MP1
be4ba53e23-Jun-2016 Dave Rigby <daver@couchbase.com>

Example python script to create couchstore file

Change-Id: Iadca33234769b88b00f76c075858b31a1b289658
Reviewed-on: http://review.couchbase.org/65193
Tested-by: buildbot <build@couchba

Example python script to create couchstore file

Change-Id: Iadca33234769b88b00f76c075858b31a1b289658
Reviewed-on: http://review.couchbase.org/65193
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

Revision tags: v4.5.0
bc5b01ee16-Mar-2016 Will Gardner <will.gardner@couchbase.com>

Fix Python tests on OSX

Python tests were disabled on OSX to resolve python binding issues
as part of MB-16454. This change adds compatibility to allow running
the Python tests on OS

Fix Python tests on OSX

Python tests were disabled on OSX to resolve python binding issues
as part of MB-16454. This change adds compatibility to allow running
the Python tests on OSX.

Change-Id: If3d3abf7835a77a6b715e1ab17a6a973f93214b6
Reviewed-on: http://review.couchbase.org/61568
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...

c5ca445e25-Feb-2016 Will Gardner <will.gardner@couchbase.com>

MB-18054 Refactor file ops to propogate file close errors properly

This change refactors the `close` file operation to correctly
progogate any underlying IO errors. It also removes the i

MB-18054 Refactor file ops to propogate file close errors properly

This change refactors the `close` file operation to correctly
progogate any underlying IO errors. It also removes the implicit
file close from couchstore_destroy_db (previously:
couchstore_close_db) and requires a user to call
couchstore_close_file (previously: couchstore_drop_file).

This is done to allow the user to get the oserror following an os
error as they would otherwise have an invalid db handle.

Change-Id: Iba3f698b49ea3b0821e888ac18e94624ad98ae92
Reviewed-on: http://review.couchbase.org/60503
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...

Revision tags: v4.5.1, v4.1.0
7d6bc22a12-Oct-2015 Mike Wiederhold <mike@couchbase.com>

MB-16454: Fix issues with python bindings on osx 10.11

Change-Id: If02848550b211fcf3151ca05c594eba4267f7dce
Reviewed-on: http://review.couchbase.org/56276
Tested-by: buildbot <build@

MB-16454: Fix issues with python bindings on osx 10.11

Change-Id: If02848550b211fcf3151ca05c594eba4267f7dce
Reviewed-on: http://review.couchbase.org/56276
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

Revision tags: v3.1.2, v3.0.3, v3.0.2, v3.0.1, v3.0.0
069ab01c04-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

fix size propery of DocumentInfo representation

Change-Id: I05ca5b105835b454593f1e3fbec682306e1bfaa2
Reviewed-on: http://review.couchbase.org/34142
Reviewed-by: Aaron Miller <apage43

fix size propery of DocumentInfo representation

Change-Id: I05ca5b105835b454593f1e3fbec682306e1bfaa2
Reviewed-on: http://review.couchbase.org/34142
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

2ba0189c02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

remove unused code

Change-Id: Idacdf5040c9d99f83baefb93b00e367e3ec6e2e1
Reviewed-on: http://review.couchbase.org/34109
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-b

remove unused code

Change-Id: Idacdf5040c9d99f83baefb93b00e367e3ec6e2e1
Reviewed-on: http://review.couchbase.org/34109
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

ae31089d02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

explicit usage of ctypes namespace

there is no need to populate namespace with something that you
don't use. It can only introduce more unexpected bugs.

explicit "ctypes." names

explicit usage of ctypes namespace

there is no need to populate namespace with something that you
don't use. It can only introduce more unexpected bugs.

explicit "ctypes." namespace prefix makes code more readable and
safe.

Change-Id: I0abf234cf3061cdd4538ac5b7fa46e8724e67eda
Reviewed-on: http://review.couchbase.org/34108
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

fddaf0a002-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

avoid too long lines

making code more readable

Change-Id: Ib2a886f4cf4dc782ecb8050c2032daa38ed6e1f5
Reviewed-on: http://review.couchbase.org/34107
Reviewed-by: Aaron Miller

avoid too long lines

making code more readable

Change-Id: Ib2a886f4cf4dc782ecb8050c2032daa38ed6e1f5
Reviewed-on: http://review.couchbase.org/34107
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

6c1283ac02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

minor code cleanup

based on common sense and PEP 8

Change-Id: Ibe3a956fb0aaf78c0691ada46d59c07354362e5c
Reviewed-on: http://review.couchbase.org/34106
Reviewed-by: Aaron Mil

minor code cleanup

based on common sense and PEP 8

Change-Id: Ibe3a956fb0aaf78c0691ada46d59c07354362e5c
Reviewed-on: http://review.couchbase.org/34106
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

5a581ace02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

get rid of comments that only repeat class names

Change-Id: I68b05e366be3cb598d0866c65b665840c5497a6b
Reviewed-on: http://review.couchbase.org/34105
Reviewed-by: Aaron Miller <apage4

get rid of comments that only repeat class names

Change-Id: I68b05e366be3cb598d0866c65b665840c5497a6b
Reviewed-on: http://review.couchbase.org/34105
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

3865411602-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

use 2 blank lines before class declaration

according to PEP 8.

Change-Id: I05c99dfc10232ad667ba6c12d21653abb6731b78
Reviewed-on: http://review.couchbase.org/34104
Reviewed-b

use 2 blank lines before class declaration

according to PEP 8.

Change-Id: I05c99dfc10232ad667ba6c12d21653abb6731b78
Reviewed-on: http://review.couchbase.org/34104
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

7e67378002-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

remove whitespaces after function and class names

since it contradicts with existing conventions

Change-Id: Ifcabe238684137bbac7f245f673a8fc7a221533b
Reviewed-on: http://review.

remove whitespaces after function and class names

since it contradicts with existing conventions

Change-Id: Ifcabe238684137bbac7f245f673a8fc7a221533b
Reviewed-on: http://review.couchbase.org/34103
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

6c65a79e02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

use sys function for exit instead of helper

see http://docs.python.org/2/library/constants.html#constants-added-by-the-site-module
for details

Change-Id: Ieb81434e530e54ba8f8bdb

use sys function for exit instead of helper

see http://docs.python.org/2/library/constants.html#constants-added-by-the-site-module
for details

Change-Id: Ieb81434e530e54ba8f8bdbdca10695f96874c1bc
Reviewed-on: http://review.couchbase.org/34102
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

63a8a4b302-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

generalize sequence of libcouchstore imports

and avoid unnecessarily repeating try-except statements

Change-Id: I215b2730212e1295635800aa11177c569ea7fc3e
Reviewed-on: http://rev

generalize sequence of libcouchstore imports

and avoid unnecessarily repeating try-except statements

Change-Id: I215b2730212e1295635800aa11177c569ea7fc3e
Reviewed-on: http://review.couchbase.org/34101
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

a48827f115-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

MB-9661: API to count changes between two sequence numbers

Change-Id: Icf62266bf29b5981d1e9dd6d33aa784a5a90d04f
Reviewed-on: http://review.couchbase.org/32412
Reviewed-by: Michael Wi

MB-9661: API to count changes between two sequence numbers

Change-Id: Icf62266bf29b5981d1e9dd6d33aa784a5a90d04f
Reviewed-on: http://review.couchbase.org/32412
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...

743d45fb16-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

Python binding should look for couchstore.dll

The new CMake based build outputs the couchstore library as
couchstore.dll rather than libcouchstore-1.dll

Change-Id: I70c9c2e7e77a

Python binding should look for couchstore.dll

The new CMake based build outputs the couchstore library as
couchstore.dll rather than libcouchstore-1.dll

Change-Id: I70c9c2e7e77ad5c9c40d1ec80d63675875caf114
Reviewed-on: http://review.couchbase.org/32541
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

1b613a6b14-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

MB-9118 Add API to rewind handle to next-oldest header

Change-Id: I81c46dd0f6d928b163fb3b379e4ad4562b3144dd
Reviewed-on: http://review.couchbase.org/32364
Tested-by: buildbot <build@

MB-9118 Add API to rewind handle to next-oldest header

Change-Id: I81c46dd0f6d928b163fb3b379e4ad4562b3144dd
Reviewed-on: http://review.couchbase.org/32364
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

9023808d16-Oct-2013 Aaron Miller <apage43@ninjawhale.com>

Python: Header position should be 64-bits long

Fixes MB-7347

Change-Id: Ibe6bca62d453405eb2e7a38ef2514a3c51d1732d
Reviewed-on: http://review.couchbase.org/29590
Tested-by: b

Python: Header position should be 64-bits long

Fixes MB-7347

Change-Id: Ibe6bca62d453405eb2e7a38ef2514a3c51d1732d
Reviewed-on: http://review.couchbase.org/29590
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>

show more ...

Revision tags: 2.1.1r, 2.1.0r, 2.0.2r
963fc26e10-May-2013 Aaron Miller <apage43@ninjawhale.com>

MB-8030 Give explicit types for *all* numbers in couchstore.py

Change-Id: Ie41f09e20a2a6c83061c62fcdc69944c24565fb3
Reviewed-on: http://review.couchbase.org/26248
Reviewed-by: Bin Cu

MB-8030 Give explicit types for *all* numbers in couchstore.py

Change-Id: Ie41f09e20a2a6c83061c62fcdc69944c24565fb3
Reviewed-on: http://review.couchbase.org/26248
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

abc2af1306-May-2013 pavel-paulau <pavel.paulau@gmail.com>

MB-7879: wrap python integers into c_uint64

Using Python values as they are is not safe. We must explicitly
specify uint64_t in order to avoid problems with 32-bit platforms.

Al

MB-7879: wrap python integers into c_uint64

Using Python values as they are is not safe. We must explicitly
specify uint64_t in order to avoid problems with 32-bit platforms.

All unit tests passed (both 32-bit and 64-bit GNU/Linux).

Change-Id: Id3c9544908f2c02ac94fcdf62f222d75740f3c89
Reviewed-on: http://review.couchbase.org/26131
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

Revision tags: 2.0.1-macosx, 2.0.1-linux, 2.0.0-couchbase
e99a4e8f02-Dec-2012 Steve Yen <steve.yen@gmail.com>

MB-7297 Use size_t for python wrapping for 32-bit support

The couchstore/couch_db.h uses size_t for several struct fields, and
size_t can be either 32-bits or 64-bits, depending on platf

MB-7297 Use size_t for python wrapping for 32-bit support

The couchstore/couch_db.h uses size_t for several struct fields, and
size_t can be either 32-bits or 64-bits, depending on platform.
So, instead of c_ulonglong, use c_size_t for those fields.

Here, we assume sizeof(off_t) == sizeof(size_t). Not a 100%
bulletproof assumption, but it seems to work on tests.

Additionally, use uint64_t for the couchstore_open_db() flags
parameter rather than the platform-specific int.

Change-Id: I36898d0260d44d57fe16ff7e16c7759c4686b4e4
Reviewed-on: http://review.couchbase.org/22969
Tested-by: Steve Yen <steve.yen@gmail.com>
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

12