Utility functions.
More...
#include <EasyQtSql.h>
|
template<typename Func > |
static int | each (QueryResult &res, Func &&f) |
| Applies function (lambda) f to each row in res. More...
|
|
template<typename Func > |
static int | range (QueryResult &res, int start, int count, Func &&f) |
| Applies function (lambda) f to count rows starting from start index. More...
|
|
template<typename Func > |
static int | top (QueryResult &res, int topCount, Func &&f) |
| Applies function (lambda) f to topCount rows from res. More...
|
|
template<typename Func > |
static int | first (QueryResult &res, Func &&f) |
| Applies function (lambda) f to first result row. More...
|
|
Utility functions.
qDebug() << row.
scalar<
bool>();
});
});
});
◆ each()
template<typename Func >
static int EasyQtSql::Util::each |
( |
QueryResult & |
res, |
|
|
Func && |
f |
|
) |
| |
|
inlinestatic |
Applies function (lambda) f to each row in res.
- Parameters
-
◆ first()
template<typename Func >
static int EasyQtSql::Util::first |
( |
QueryResult & |
res, |
|
|
Func && |
f |
|
) |
| |
|
inlinestatic |
Applies function (lambda) f to first result row.
- Parameters
-
◆ range()
template<typename Func >
static int EasyQtSql::Util::range |
( |
QueryResult & |
res, |
|
|
int |
start, |
|
|
int |
count, |
|
|
Func && |
f |
|
) |
| |
|
inlinestatic |
Applies function (lambda) f to count rows starting from start index.
- Parameters
-
res | QueryResult |
start | Index of start row |
count | Rows count |
f | Function |
◆ top()
template<typename Func >
static int EasyQtSql::Util::top |
( |
QueryResult & |
res, |
|
|
int |
topCount, |
|
|
Func && |
f |
|
) |
| |
|
inlinestatic |
Applies function (lambda) f to topCount rows from res.
- Parameters
-
res | QueryResult |
topCount | Count of rows |
count | Rows count |
f | Function |
The documentation for this class was generated from the following file: