31 Commits

Author SHA1 Message Date
Hannes Magnusson
ba8378e1fd PHP-1319: Implement command cursors 2014-12-08 10:17:17 -08:00
Hannes Magnusson
fa414d1018 PHP-1195: Remove Int32 and Int64 classess
Keeping these would force everyone to use them, which is not cool when
the majority of users shouldn't have to
2014-12-02 14:54:16 -08:00
Hannes Magnusson
ef5afd98d6 Remove misterious BSON\Log class 2014-12-02 14:53:37 -08:00
Hannes Magnusson
27ae67c5e2 Fixed various memory leaks and compiler warnings 2014-11-21 17:30:58 -08:00
Hannes Magnusson
23bb9a63ff PHP-1189: Implement BSON regex type 2014-11-21 10:53:10 -08:00
Jeremy Mikola
76d49f792b PHP-1189: BSON Regex type 2014-11-21 10:05:29 -08:00
Hannes Magnusson
f5b5d6ddef PHP-1187: Implement BSON binary type 2014-11-21 09:51:27 -08:00
Hannes Magnusson
dfbef380a5 PHP-1188: Implement BSON code and code with scope types
NOTE: This type is not supported by Extended JSON :(
2014-11-20 17:33:10 -08:00
Hannes Magnusson
4a8b86c1a2 PHP-1191: Implement BSON timestamp type 2014-11-20 15:47:43 -08:00
Hannes Magnusson
c439fbcc67 PHP-1190: Implement BSON\UTCDateTime 2014-11-19 17:07:13 -08:00
Hannes Magnusson
7636ed4e76 PHP-1185: Add more Cursor related methods 2014-11-19 17:05:10 -08:00
Hannes Magnusson
5dc733469b PHP-1183: Implement default Iterator class for QueryResult & CommandResult 2014-11-19 12:55:38 -08:00
Jeremy Mikola
efb777255f PHP-1230: Clean up WriteResult property storage on WriteException 2014-10-02 14:43:12 -04:00
Jeremy Mikola
e6fc9b0624 PHP-1142: Support upserted ids in WriteResult
Renamed getGeneratedIdsForUpsert() to getUpsertedIds().
2014-09-29 11:37:46 -04:00
Jeremy Mikola
7358ac7f6c PHP-1142: Implement WriteResult getter for meta information
This getter is intended to return situational fields (e.g. lastOp, electionId), which are not currently supported by libmongoc (see: CDRIVER-428).
2014-09-25 16:02:45 -04:00
Jeremy Mikola
9aaa2de17b PHP-1230: Implement WriteException class 2014-09-25 15:57:48 -04:00
Jeremy Mikola
12cc8616dc PHP-1142: Init WriteError and WriteConcernError arrays for WriteResult
When initializing a WriteResult, we should initialize the corresponding WriteError and WriteConcernError classes, too. This moves all of the initialization code into php_phongoc, as was done with the error classes.

Additionally, phongo_execute_write() has been changed to not construct a bson_t reply unnecessarily (i.e. return value will not be used).
2014-09-25 15:57:48 -04:00
Jeremy Mikola
b1b5568edd PHP-1172: Implement WriteError class
Removed getter for bulk operation corresponding to the index, since that would require reconstructing zvals from the libmongoc structs.
2014-09-24 15:48:32 -04:00
Jeremy Mikola
783c14d1c6 PHP-1171: Implement WriteConcernError class
Removed constructor and implemented populate method, which should operate on BSON documents within WriteResult's writeConcernError(s) field.
2014-09-17 15:55:18 -04:00
Jeremy Mikola
5d7485eb45 Rename query document field in query struct
Selector and query are both BSON, so a "bson" field is a bit ambiguous.
2014-08-25 13:55:59 -04:00
Hannes Magnusson
cdaa3b074d Implement BSON\ObjectID properly 2014-08-06 21:59:24 +00:00
Hannes Magnusson
84a215df30 Make BSON types implement BSON\Type interface 2014-07-30 01:49:09 +00:00
Hannes Magnusson
f23cef90ca Implement WriteConcern 2014-07-21 22:20:05 +00:00
Hannes Magnusson
0c644bb2c5 Add ObjectID support 2014-07-19 00:52:57 +00:00
Hannes Magnusson
8d85ce31a5 Forgotten things for new classes 2014-07-19 00:23:26 +00:00
Hannes Magnusson
6360f5038a Add BSON objects and move generated classes into its own folders 2014-07-18 16:44:45 -07:00
Hannes Magnusson
7cd4548c44 Add a compare_objects handler for Server objects and always try to have a mongoc_host_t for it 2014-07-16 17:59:26 +00:00
Hannes Magnusson
f6cbc69e91 Fix the remaining tests 2014-07-16 17:59:25 +00:00
Hannes Magnusson
24cd7bc571 Get tests to pass 2014-07-16 17:59:25 +00:00
Hannes Magnusson
705699d0b8 revert accidental removal 2014-07-16 17:59:25 +00:00
Hannes Magnusson
b71dc99ed7 Easier to maintain in a single file 2014-07-16 17:59:24 +00:00