2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
43#include "database/mariadb/commands/async/MariaDBFetchRowCommand.h"
45#ifndef DOXYGEN_SHOULD_SKIP_THIS
52 const std::function<
void(
const MYSQL_ROW)>& onRow,
53 const std::function<
void(
const std::string&,
unsigned int)>& onError)
63 if (result !=
nullptr) {
64 ret = mysql_fetch_row_start(&row, result);
71 return mysql_fetch_row_cont(&row, result, status);
77 return row ==
nullptr;
81 onError(errorString, errorNumber);
int commandContinue(int status) override
int commandStart() override
void commandError(const std::string &errorString, unsigned int errorNumber) override
MariaDBFetchRowCommand(MYSQL_RES *&result, const std::function< void(const MYSQL_ROW)> &onRow, const std::function< void(const std::string &, unsigned int)> &onError)
bool commandCompleted() override