AbstractSqlQuery is a common base class from which all query types are derived, and provides common SQL keywords.
#include <qx/sql/qx-sqlquery.h>
|
| template<sql_stringable First> |
| auto & | AS (First &&fs) |
| |
| template<sql_stringable First> |
| auto & | BETWEEN (First &&fs) |
| |
| auto & | CASE () |
| |
| auto & | DISTINCT () |
| |
| template<sql_stringable First> |
| auto & | ELSE (First &&fs) |
| |
| auto & | END () |
| |
| template<QxSql::sql_struct First, QxSql::sql_struct... Rest> |
| Derived & | FROM () |
| |
| template<sql_stringable First, sql_stringable ... Rest> |
| auto & | FROM (First &&fs, Rest &&... s) |
| |
template<std::ranges::input_range R>
requires sql_stringable<unwrap_t<R>> |
| Derived & | IN (const R &range) |
| |
| auto & | IN (const SqlQuery &q) |
| |
| template<sql_stringable First, sql_stringable ... Rest> |
| auto & | IN (First &&fs, Rest &&... s) |
| |
| auto & | IS () |
| |
| template<sql_stringable First> |
| auto & | IS (First &&fs) |
| |
| template<sql_stringable First> |
| auto & | ON (First &&fs) |
| |
| template<QxSql::sql_struct First, QxSql::sql_struct... Rest> |
| Derived & | SELECT () |
| |
| template<sql_stringable First, sql_stringable ... Rest> |
| Derived & | SELECT (First &&fsel, Rest &&... sel) |
| |
| template<QxSql::sql_struct First, QxSql::sql_struct... Rest> |
| Derived & | SELECT_DISTINCT () |
| |
| template<sql_stringable First, sql_stringable ... Rest> |
| Derived & | SELECT_DISTINCT (First &&fsel, Rest &&... sel) |
| |
| template<sql_stringable First> |
| auto & | THEN (First &&fs) |
| |
| Derived & | verbatim (const QString &sql, bool space=true) |
| |
| auto & | WHEN () |
| |
| template<sql_stringable First> |
| auto & | WHEN (First &&fs) |
| |
| auto & | WHERE () |
| |
| template<sql_stringable First> |
| auto & | WHERE (First &&fs) |
| |
| void | bindValue (const QString &placeholder, const QVariant &val) |
| |
| SqlDatabase * | database () |
| |
| const SqlDatabase * | database () const |
| |
| bool | hasDatabase () const |
| |
| QString | string () const |
| |
◆ AS()
template<typename Derived>
template<sql_stringable First>
Adds a AS clause to the query using fs and returns a reference to the query.
◆ BETWEEN()
template<typename Derived>
template<sql_stringable First>
Adds a BETWEEN clause to the query using fs and returns a reference to the query.
◆ CASE()
template<typename Derived>
Adds a CASE clause to the query and returns a reference to the query.
◆ DISTINCT()
template<typename Derived>
Adds a DISTINCT clause to the query and returns a reference to the query.
◆ ELSE()
template<typename Derived>
template<sql_stringable First>
Adds a ELSE clause to the query using fs and returns a reference to the query.
◆ END()
template<typename Derived>
Adds a END clause to the query and returns a reference to the query.
◆ FROM() [1/2]
template<typename Derived>
Adds a FROM clause to the query using all of the fields from First through Rest and returns a reference to the query.
◆ FROM() [2/2]
template<typename Derived>
template<sql_stringable First, sql_stringable ... Rest>
Adds a FROM clause to the query using fs through s and returns a reference to the query.
◆ IN() [1/3]
template<typename Derived>
template<std::ranges::input_range R>
requires sql_stringable<
unwrap_t<R>>
Adds an IN clause to the query using all of the elments from range.
If range is empty, the SQL statement will be ill-formed.
◆ IN() [2/3]
template<typename Derived>
Adds a IN clause to the query using q as a sub-query and returns a reference to the query.
◆ IN() [3/3]
template<typename Derived>
template<sql_stringable First, sql_stringable ... Rest>
Adds a IN clause to the query using fs through s and returns a reference to the query.
◆ IS() [1/2]
template<typename Derived>
Adds a IS clause to the query and returns a reference to the query.
◆ IS() [2/2]
template<typename Derived>
template<sql_stringable First>
Adds a IS clause to the query using fs and returns a reference to the query.
◆ ON()
template<typename Derived>
template<sql_stringable First>
Adds a ON clause to the query using fs and returns a reference to the query.
◆ SELECT() [1/2]
template<typename Derived>
Adds a SELECT clause to the query using all of the fields from First through Rest and returns a reference to the query.
◆ SELECT() [2/2]
template<typename Derived>
template<sql_stringable First, sql_stringable ... Rest>
Adds a SELECT clause to the query using fs through s, and returns a reference to the query.
◆ SELECT_DISTINCT() [1/2]
template<typename Derived>
Adds a SELECT clause to the query using all of the fields from First through Rest, followed by the keyword DISTINCT and returns a reference to the query.
◆ SELECT_DISTINCT() [2/2]
template<typename Derived>
template<sql_stringable First, sql_stringable ... Rest>
Adds a SELECT clause to the query using fs through s, followed by the keyword DISTINCT and returns a reference to the query.
◆ THEN()
template<typename Derived>
template<sql_stringable First>
Adds a THEN clause to the query using fs and returns a reference to the query.
◆ verbatim()
template<typename Derived>
Adds the text sql directly to the query and returns a reference to the query.
If space is true, a space is automatically added before sql if the query already contains some text.
◆ WHEN() [1/2]
template<typename Derived>
Adds a WHEN clause to the query and returns a reference to the query.
◆ WHEN() [2/2]
template<typename Derived>
template<sql_stringable First>
Adds a WHEN clause to the query using fs and returns a reference to the query.
◆ WHERE() [1/2]
template<typename Derived>
Adds a WHERE clause to the query and returns a reference to the query.
◆ WHERE() [2/2]
template<typename Derived>
template<sql_stringable First>
Adds a WHERE clause to the query using fs and returns a reference to the query.
The documentation for this class was generated from the following files: