Jeremy Mikola
ae0219d69e
PHPC-168: Implement WriteResult::isAcknowledged()
...
We copy the write concern struct rather than store an is_acknowledged boolean, which allows us to include the write concern in the debug output. Down the line, we may decide to implement a getWriteConcern() method to help users in handling/logging write concern errors.
2015-03-13 02:26:51 -04:00
Hannes Magnusson
264d24b02d
libbson 1.1.2 & mongoc 1.1.2
2015-03-11 10:02:36 -07:00
Hannes Magnusson
7d19e4f846
Bump submodules
2015-03-04 13:56:10 -08:00
Hannes Magnusson
2af9f048f0
Bump mongoc for PHPC-167
2015-03-03 15:35:51 -08:00
Hannes Magnusson
d2326b7f50
PHPC-129: HIPPO can't throw InvalidArgumentException on argument errors
2015-03-03 10:55:40 -08:00
Hannes Magnusson
5a4778f928
PHPC-163: Throw BulkWriteException on BulkWrite failure
...
For execute[Insert|Update|Delete]() we unroll the BulkWrite exception
and throw the inner errors.
Note: WriteConcern failure now throws WriteConcernException!
2015-03-03 10:21:37 -08:00
Hannes Magnusson
633af554df
PHPC-166: Disable (un)serializing of phongo objects
2015-02-27 13:53:59 -08:00
Hannes Magnusson
457b6452fa
PHPC-165: Rename WriteBatch to BulkWrite
2015-02-20 15:05:29 -08:00
Hannes Magnusson
4cf9536f96
PHPC-164: Throw MongoDB\Driver\ConnectionTimeoutException
2015-02-19 15:02:49 -08:00
Hannes Magnusson
dad5d51b12
PHPC-107: Throw ExecutionTimeoutException for maxTimeMs
2015-02-19 13:15:04 -08:00
Hannes Magnusson
ced7c408f3
PHPC-158: Split queryFlags bitmask option into specific options
2015-02-18 11:46:10 -08:00
Hannes Magnusson
481600d990
PHPC-157: Consolidate CommandResult and QueryResult classes
2015-02-18 11:09:36 -08:00
Hannes Magnusson
8567a79041
rebase with Result.c
2015-02-18 10:49:58 -08:00
Hannes Magnusson
60cdf72a51
PHPC-157: Consolidate CommandResult and QueryResult classes
...
Renamed getResponseDocument() to toArray()
Added setTypemap
2015-02-18 10:46:51 -08:00
Hannes Magnusson
d6d97405ac
PHPC-157: Remove QueryResult
2015-02-18 10:46:05 -08:00
Hannes Magnusson
a50f3d961a
bump mongoc
2015-02-18 10:17:14 -08:00
Hannes Magnusson
0357824212
PHPC-155: WriteConcernError->getInfo() can be scalar
2015-02-18 09:56:37 -08:00
Hannes Magnusson
9051914e97
Add a note about PHPC-72
2015-02-18 09:55:45 -08:00
Hannes Magnusson
d8506faa31
PHPC-154: WriteError can have info field
2015-02-18 09:52:47 -08:00
Hannes Magnusson
30aa95b66c
PHPC-152: Throw MongoDB\Driver\InvalidArgumentException on argument errors
2015-02-06 16:31:06 -08:00
Hannes Magnusson
28abd5594f
PHPC-151: Bump to libbson-1.1.0 and mongoc-1.1.0 and fix build
2015-02-02 15:02:05 -08:00
Hannes Magnusson
b93ad4f1e1
PHPC-148: var_dump()ing ObjectID should show the ObjectID
2015-01-29 10:55:38 -08:00
Hannes Magnusson
557ed02006
PHPC-146: ReadPreferences swapped
2015-01-28 13:46:22 -08:00
Hannes Magnusson
031a8dac1e
PHPC-140: var_dump()ing WriteConcernError and WriteError
2015-01-27 14:18:29 -08:00
Hannes Magnusson
7626368622
PHPC-139: var_dump()ing WriteBatch
2015-01-27 13:23:42 -08:00
Hannes Magnusson
4b8ef30fd1
PHPC-138: var_dump()ing WriteConcern
2015-01-27 11:56:15 -08:00
Hannes Magnusson
4a20c63e1c
PHPC-138: var_dump()ing ReadPreference
2015-01-27 11:55:43 -08:00
Hannes Magnusson
2acbc5bd2c
PHPC-137: var_dump()ing CursorID should show the Cursor ID
2015-01-26 16:50:29 -08:00
Hannes Magnusson
1120b3060f
simplify
2015-01-09 16:46:36 -08:00
Hannes Magnusson
421ca3cecc
PHPC-134: Add the internal results here too
2015-01-09 16:00:30 -08:00
Hannes Magnusson
770c2b579f
PHPC-136: var_dump() CommandResult and QueryResult
2015-01-09 16:00:08 -08:00
Hannes Magnusson
1c31f2f934
PHPC-133: var_dump()ing cursor
2015-01-09 15:36:11 -08:00
Hannes Magnusson
8c89c1c950
PHPC-135: Fix memory leak var_dump()ing Command
2015-01-09 12:47:14 -08:00
Hannes Magnusson
5e48dff242
PHPC-135: Fix memory leak var_dump()ing Query and add test
2015-01-09 12:36:41 -08:00
Hannes Magnusson
d5c721cd0a
PHPC-134: Add debug info for WriteResult
2015-01-09 12:27:26 -08:00
Hannes Magnusson
5657ec7ab7
PHPC-110: Fix segfault on standalone nodes :)
2015-01-08 17:10:17 -08:00
Hannes Magnusson
7bf0fb588c
PHPC-135: Implement debug handler for Query and Command
2015-01-08 17:09:19 -08:00
Hannes Magnusson
537503356d
PHPC-110: Fix segfault when var_dump()ing before connecting
2015-01-08 10:31:56 -08:00
Hannes Magnusson
1817a0b37b
PHPC-110: Add var_dump() support for MongoDB\Driver\Manager
2015-01-07 21:05:22 -08:00
Hannes Magnusson
cdc6471b46
PHPC-130: Update the get_current_key handler to support pre-5.5
2015-01-06 20:28:05 -08:00
Hannes Magnusson
8e3bd3d8c7
PHPC-116: Cursor methods should call their respective iterator function handlers
2015-01-06 16:45:55 -08:00
Hannes Magnusson
865297f79a
Smiplify cursor/results to prep for PHPC-116
2015-01-06 16:45:55 -08:00
Hannes Magnusson
af80d64193
PHPC-42: Implement root level (full document) ODM style serialization
2015-01-05 14:32:11 -08:00
Hannes Magnusson
ac3984dd75
PHPC-123: Wrong sizeof argument
...
I've stared at this for a while and have come to the conclusion that
the ZEND_STRS macro is confusing coverity.
2015-01-05 12:54:31 -08:00
Hannes Magnusson
148e726e26
PHPC-42: BSON Serialization for classes
...
This is a basic ODM.
When a class implements the BSON\Persistable interface gets bson
encoded we will embed a __ binary(type=0x80) value into the document.
Upon bson decoding a document, if we find that binary type convert that
document/array into the php class
2015-01-02 11:08:40 -08:00
Hannes Magnusson
f4a574e382
PHPC-121: Use BSON\Serialize::bsonSerialize() during serialization
2014-12-31 22:35:40 -08:00
Hannes Magnusson
e82b1d0639
PHPC-96: Add QueryResult->setTypemap() to overwrite array/object mapping
2014-12-31 21:31:56 -08:00
Hannes Magnusson
0744895e16
PHPC-96 & PHPC-119 call the new bsonUnserialize method and optimize things a little
2014-12-31 18:55:41 -08:00
Hannes Magnusson
2691047570
PHPC-120: BSON\toArray should support classmap to unserialize as
2014-12-31 18:55:41 -08:00
Hannes Magnusson
3fa8cc8159
PHPC-119 && PHPC-49: Create PHP interfaces for BSON (un-)serialization
2014-12-31 18:55:08 -08:00