@@ -421,7 +421,7 @@ class PUBLIC_API Collection
421
421
422
422
/* *
423
423
Replaces the document identified by id if it exists and returns true.
424
- Otherwise false is returned . Parameter document can be either DbDoc object,
424
+ Otherwise returns false . Parameter document can be either DbDoc object,
425
425
or JSON string, or expr(docexpr) where docexpr is like JSON
426
426
string but field values are expressions.
427
427
It is not possible to bind values of named parameters with .bind()
@@ -435,14 +435,14 @@ class PUBLIC_API Collection
435
435
}
436
436
437
437
/* *
438
- Adds a new document and returns true if a document identified
439
- by id does not exist . Otherwise an existing document is
440
- replaced and false is returned .
438
+ Adds a new document identified by id if it does not exist and
439
+ returns true . Otherwise replaces the existing document
440
+ with that id and returns false .
441
441
Parameter document can be either DbDoc object,
442
442
or JSON string, or expr(docexpr) where docexpr is like JSON
443
443
string but field values are expressions.
444
444
It is not possible to bind values of named parameters with .bind()
445
- because the statement gets executed upon calling of this function.
445
+ because the statement is executed upon calling of this function.
446
446
*/
447
447
448
448
bool addOrReplace (string id, internal::ExprValue &&document)
0 commit comments