MySQL Shell API 9.1.0
Unified development interface for MySQL Products
|
Allows traversing the DbDoc objects returned by a Collection.find operation. More...
Methods | |
Document | fetch_one () |
Retrieves the next DbDoc on the DocResult. More... | |
list | fetch_all () |
Returns a list of DbDoc objects which contains an element for every unread document. More... | |
Methods inherited from BaseResult | |
int | get_affected_items_count () |
The the number of affected items for the last operation. More... | |
int | get_warnings_count () |
The number of warnings produced by the last statement execution. More... | |
list | get_warnings () |
Retrieves the warnings generated by the executed operation. More... | |
str | get_execution_time () |
Retrieves a string value indicating the execution time of the executed operation. | |
Additional Inherited Members | |
Properties inherited from BaseResult | |
int | affected_items_count |
Same as get_affected_items_count() | |
int | warnings_count |
Same as get_warnings_count() | |
list | warnings |
Same as get_warnings() | |
str | execution_time |
Same as get_execution_time() | |
Allows traversing the DbDoc objects returned by a Collection.find operation.
Document fetch_one | ( | ) |
Retrieves the next DbDoc on the DocResult.
list fetch_all | ( | ) |
Returns a list of DbDoc objects which contains an element for every unread document.
If this function is called right after executing a query, it will return a DbDoc for every document on the resultset.
If fetchOne is called before this function, when this function is called it will return a DbDoc for each of the remaining documents on the resultset.