Commit Graph

50 Commits

Author SHA1 Message Date
Eliot Horowitz
34de75445d some BSONObjBuilder helpers for accessing data whilebuilding 2011-01-21 14:19:49 -05:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Eliot Horowitz
4e76652538 fix some type conversion warnings SERVER-2251 2010-12-23 15:04:39 -05:00
Eliot Horowitz
2da179f9a7 BONObjBuilder::append( const StringData& fieldName, string str), second argument should be passed by const& SERVER-2224 2010-12-15 00:36:52 -05:00
dwight
eb5ac64eeb comment 2010-11-30 08:46:51 -05:00
dwight
47b43cea41 comment was wrong 2010-11-30 08:21:50 -05:00
Eliot Horowitz
0dbcd449c6 comments on obj() and arr() 2010-10-25 02:41:57 -04:00
Eliot Horowitz
738b686c12 way to get len() on BSON(Obj|Array)Builder 2010-10-17 22:29:12 -04:00
Aaron
78044d147a SERVER-1917 don't allow returning new element with appendAs 2010-10-10 15:09:40 -07:00
Eliot Horowitz
09d965b418 initial buffer size for BSONArrayBuilder 2010-10-09 21:57:57 -04:00
Eliot Horowitz
e3e3a22e8d remove some extraneous c_str 2010-10-09 11:01:50 -04:00
Aaron
75351ec80f bsonobjbuilder change appendAs interface 2010-10-01 17:42:35 -07:00
Aaron
2a4c95a3f4 SERVER-394 bsonobjbuilder allow returning newly appended element, in one case 2010-09-29 11:14:53 -07:00
Alberto Lerner
7a7cc4adfa SERVER-1452 StringData-ing up, c_str()-ing down 2010-08-18 18:12:31 -04:00
Eliot Horowitz
5663169f5f fix 32-bit compile 2010-08-18 10:03:08 -04:00
Eliot Horowitz
a054706d1e appendNumber unsizned, size_t 2010-08-18 09:47:51 -04:00
Eliot Horowitz
cd2d06fa73 typo 2010-07-29 09:43:36 -04:00
Eliot Horowitz
421ff50975 appendObject for raw char* appending 2010-07-29 01:07:22 -04:00
Mathias Stearn
585b3797ff use less stringstream in bson 2010-07-27 17:18:43 -04:00
Andrew C. Morrow
8443231430 fast done capability for BSONObjBuilder 2010-07-27 09:32:46 +08:00
Eliot Horowitz
91cc690bb9 don't build string for uassert in bson since uassert there isn't a macro 2010-07-26 16:10:37 -04:00
Alberto Lerner
67710484c1 SERVER-1270 Missed one call in BSONObjBuilder 2010-07-20 12:29:29 -04:00
Alberto Lerner
27dde175e0 SERVER-1270 Hook StringData to BSONObjBuilder 2010-07-20 11:15:06 -04:00
Mathias Stearn
8047e6afb2 $or helper in C++ SERVER-1332 2010-07-19 13:42:09 -04:00
Alberto Lerner
f51a4d0669 SERVER-1270 Hook StringData to BufBuilder 2010-07-19 09:56:24 -04:00
Dwight
db5aafcd11 rs fixes 2010-07-14 15:08:59 -04:00
Mathias Stearn
13c6875815 temporarily Revert "git rid of "operator string""
This reverts commit 95fa51a1df.
2010-07-07 01:22:33 -04:00
Mathias Stearn
95fa51a1df git rid of "operator string" 2010-07-07 00:30:17 -04:00
Alberto Lerner
cc37c07bb5 SERVER-1270 Make it a bit faster for std::string's 2010-07-06 20:33:59 -04:00
Dwight
df99ec85df elim warnings on widnows compile 2010-06-29 11:28:20 -04:00
Mathias Stearn
23a6d6a869 Start handling Nuls in strings. SERVER-1177 2010-06-25 17:34:27 -04:00
Eliot Horowitz
a7f063dc21 nicer way to create bson
BSONField<int> x("x");
     BSONObj o = BSON( x(5) );
     ASSERT_EQUALS( BSON( "x" << 5 ) , o );

     o = BSON( x.gt(5) );
     ASSERT_EQUALS( BSON( "x" << BSON( "$gt" << 5 ) ) , o );
2010-06-21 11:18:33 -04:00
Eliot Horowitz
49122f7d6c fix json parser cleanup 2010-06-12 23:28:38 -04:00
Eliot Horowitz
be7b84c033 close subobj BSONObjBuilders automatically if they don't get closed cleanly 2010-06-10 16:00:37 -04:00
dwight
23882959f5 switch default subtype to 0 for BinData bson 2010-06-09 11:00:43 -04:00
Dwight Merriman
f36becfb54 repl cleaning 2010-05-29 16:17:33 -04:00
Aaron
ea362c0ca4 SERVER-109 explain 2010-05-26 01:30:50 -07:00
Aaron
cb17065bae maybe compile solaris 2010-05-25 17:57:50 -07:00
Aaron
8affe97c8d maybe compile solaris 2010-05-25 17:49:40 -07:00
Dwight
9675dc776f c++ strikes again 2010-05-21 18:03:11 -04:00
Dwight
27e55029fd ismaster; bsonobjbuilder 2010-05-21 17:50:08 -04:00
Dwight
13e25a7171 apbsonobjbuilder pend d list 2010-05-21 17:39:25 -04:00
Eliot Horowitz
a16d4d1159 better error message 2010-04-27 00:24:33 -04:00
Dwight Merriman
8fb9289813 bson cleaning 2010-04-25 17:48:49 -04:00
Dwight Merriman
c4bd465042 towards 3 2010-04-24 18:25:58 -04:00
Dwight Merriman
0fdc95bfb5 some bson cleaning 2010-04-24 15:45:50 -04:00
Dwight
4b77d7fc78 allow a chaining style with BSONObjBuilder appends 2010-04-23 18:48:20 -04:00
Dwight
f0928e5f7d rs work 2010-04-21 16:14:28 -04:00
Eliot Horowitz
9fb9801971 indent MINOR 2010-04-21 15:26:38 -04:00
Dwight
5dab211e68 more bson headers 2010-04-21 15:23:00 -04:00