Lightweight 0.1.0
|
Represents a query builder that retrieves only the first record found. More...
#include <DataMapper.hpp>
Inherits SqlWhereClauseBuilder< SqlQuerySingleBuilder< Record > >.
Public Member Functions | |
std::optional< Record > | Get () |
Executes the query and returns the first record found. | |
Protected Member Functions | |
LIGHTWEIGHT_FORCE_INLINE | SqlQuerySingleBuilder (SqlStatement &stmt, std::string fields) noexcept |
Represents a query builder that retrieves only the first record found.
Definition at line 479 of file DataMapper.hpp.
|
inlineexplicitprotectednoexcept |
Definition at line 502 of file DataMapper.hpp.
|
inline |
Executes the query and returns the first record found.
Definition at line 511 of file DataMapper.hpp.
References SqlStatement::Connection(), SqlStatement::ExecuteDirect(), SqlStatement::GetResultCursor(), SqlQueryFormatter::SelectFirst(), and SqlConnection::ServerType().