SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ Iterator() [1/2]

template<SelecterType SELECTER>
sqt::Iterator< SELECTER >::Iterator ( Statement & statement)
explicit

Constructs an iterator pointing to the beginning of the result elements.

Parameters
statementThe statement associated with the iterator.
Exceptions
sqt::SQLErrorThrown if the underlying statement execution fails.

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()