Skip to content

Commit 18567cd

Browse files
author
Bogdan Degtyariov
committed
Documentation update for replaceOne() and addOrReplace() methods
1 parent c150dd0 commit 18567cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/mysql_devapi.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ class PUBLIC_API Collection
421421

422422
/**
423423
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,
425425
or JSON string, or expr(docexpr) where docexpr is like JSON
426426
string but field values are expressions.
427427
It is not possible to bind values of named parameters with .bind()
@@ -435,14 +435,14 @@ class PUBLIC_API Collection
435435
}
436436

437437
/**
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.
441441
Parameter document can be either DbDoc object,
442442
or JSON string, or expr(docexpr) where docexpr is like JSON
443443
string but field values are expressions.
444444
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.
446446
*/
447447

448448
bool addOrReplace(string id, internal::ExprValue &&document)

0 commit comments

Comments
 (0)