Constructs an iterator pointing to the beginning of the result elements.
- Parameters
-
| statement | The statement associated with the iterator. |
- Exceptions
-
This constructor is called internally by the sqt::Result::begin() method to create an interator pointing to the first result element. It is not intended to be called directly by users.
This constructor executes the SELECT statement. If the execution succeeds and the result is empty, the iterator will be set to the end state.
- See also
- sqt::Iterator<>::Iterator(Statement&, std::monostate)
-
sqt::Result<>::begin()