|
Lightweight 0.20260303.0
|
SQL query result row iterator. More...
#include <SqlStatement.hpp>
Public Member Functions | |
| SqlRowIterator (SqlConnection &conn) | |
| Constructs a row iterator using the given SQL connection. | |
| iterator | begin () |
| Returns an iterator to the first row of the result set. | |
| iterator | end () noexcept |
| Returns a sentinel iterator representing the end of the result set. | |
SQL query result row iterator.
Can be used to iterate over rows of the database and fetch them into a record type.
| T | The record type to fetch the rows into. struct MyRecord
{
Field<int> field2;
Field<double> field3;
};
{
// row is of type MyRecord
// row.field1, row.field2, row.field3 are accessible
}
|
Definition at line 501 of file SqlStatement.hpp.
|
inlineexplicit |
Constructs a row iterator using the given SQL connection.
Definition at line 505 of file SqlStatement.hpp.
|
inline |
Returns an iterator to the first row of the result set.
Definition at line 573 of file SqlStatement.hpp.
|
inlinenoexcept |
Returns a sentinel iterator representing the end of the result set.
Definition at line 584 of file SqlStatement.hpp.