docs note about select subqueries

[skip ci]
This commit is contained in:
silverqx
2022-07-14 15:05:47 +02:00
parent 8ee059dd99
commit 3ffa654210
2 changed files with 4 additions and 1 deletions
+4
View File
@@ -154,6 +154,10 @@ If you already have a query builder instance and you wish to add a column to its
auto users = query.addSelect("age").get();
:::note
You can also pass subqueries to the `select` and `addSelect` methods. A subquery can be a lambda expression, raw string, or the `QueryBuilder` instance.
:::
## Raw Expressions
Sometimes you may need to insert an arbitrary string into a query. To create a raw string expression, you may use the `raw` method provided by the `DB` facade:
-1
View File
@@ -817,7 +817,6 @@ namespace Orm::Query
return selectSub(std::forward<T>(query), as);
}
// TODO docs silverqx
template<SubQuery T>
Builder &Builder::selectSub(T &&query, const QString &as)
{