mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-04 15:39:26 -05:00
docs note about select subqueries
[skip ci]
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user