MySQL Connector/C++ 9.1.0
MySQL connector library for C and C++ applications
|
Represents a result of an operation that does not return data. More...
Public Member Functions | |
uint64_t | getAutoIncrementValue () const |
Get the auto-increment value if one was generated by a table insert statement. | |
DocIdList | getGeneratedIds () const |
Return a list of identifiers of multiple documents added to a collection, generated by the server. | |
unsigned | getWarningsCount () const |
Get the number of warnings stored in the result. | |
WarningList | getWarnings () |
Get a list of warnings stored in the result. | |
Warning | getWarning (unsigned pos) |
Get the warning at the given, 0-based position. | |
uint64_t | getAffectedItemsCount () const |
Get the count of affected items (rows or doucuments) from manipulation statements. | |
Represents a result of an operation that does not return data.
A generic result which can be returned by operations which only modify data.
A Result
instance can store the result of executing an operation:
Storing another result in a Result
instance overwrites the previous result.
Result
object should be used by at most one thread at a time. It is not safe to call its methods by several threads simultaneously. It is responsibility of the user to ensure this using a synchronization mechanism such as mutexes.