6#include "query/QueryData.hpp"
25 Query() : data{.modelInfo =
Model<T>().getModelInfo()} {}
33 data.condition = condition;
69 data.shouldJoin =
false;
84 [[nodiscard]]
inline auto getData() const -> const query::QueryData&
89 query::QueryData data;
A class representing a database in the ORM framework.
Definition database.hpp:17
A template class representing a model in the ORM framework.
Definition model.hpp:17
A template class representing a select query in the ORM framework.
Definition query.hpp:20
auto limit(std::size_t limit) -> Query< T > &
Sets the LIMIT clause for the select query.
Definition query.hpp:55
auto disableJoining() -> Query< T > &
Disables joining for the select query.
Definition query.hpp:67
auto where(const query::Condition &condition) -> Query< T > &
Where clause.
Definition query.hpp:31
Query()
Constructs a Query object.
Definition query.hpp:25
auto offset(std::size_t offset) -> Query< T > &
Sets the OFFSET clause for the select query.
Definition query.hpp:43