Creates a sqt::Result<> instance that can be used to retrieve the results of the select querier.
- Returns
- A sqt::Result<> instance. The instance remains valid until the executor is destructed or the Reset() method is called.
- Note
- This method is available only if the querier satisfies the sqt::SelecterType concept.
This method does not immediately execute the statement. Instead, it creates a sqt::Result<> instance, and the execution will be deferred until the first retrieval from the returned instance.
- Warning
- This method should be called only once for each execution. To retrieve the results again, call the Reset() method first to reset the statement's state, and then call this method again to create a new sqt::Result<> instance.
- See also
- sqt::Executor<>::Reset()
-
sqt::Result<>
-
sqt::SelecterType