Lightweight 0.20260921.0
Loading...
Searching...
No Matches
Lightweight::SqlNamedProjectionQueryObject Concept Reference

Represents a query object that also knows the name of each column it projects. More...

#include <SqlStatement.hpp>

Concept definition

template<typename QueryObject>
concept Lightweight::SqlNamedProjectionQueryObject = SqlQueryObject<QueryObject> && requires(QueryObject const& queryObject) {
{ queryObject.ProjectedFieldNames() } -> std::convertible_to<std::span<std::string const>>;
{ queryObject.ProjectionHasWildcard() } -> std::convertible_to<bool>;
}
Represents a query object that also knows the name of each column it projects.
Represents an SQL query object, that provides a ToSql() method.

Detailed Description

Represents a query object that also knows the name of each column it projects.

Satisfied by the SELECT query builder's composed query, which records the caller-given name of every projected column as the projection is assembled. Statements executed from such a query object can resolve result columns by name — see the name-taking GetColumn overload of SqlResultCursor.

Definition at line 63 of file SqlStatement.hpp.