* Specify the source table or subquery for the query * * @param source - An object with a single key-value pair where the key is the table alias and the value is a Collection or subquery * @returns A QueryBuilder with the specified source * * @example * ```ts * // Query from a c
(
source: SingleSource<TSource>,
)
| 173 | * ``` |
| 174 | */ |
| 175 | from<TSource extends Source>( |
| 176 | source: SingleSource<TSource>, |
| 177 | ): QueryBuilder<ContextFromSource<TSource>> { |
| 178 | const [, from] = this._createRefForSource(source, `from clause`) |
| 179 | |
| 180 | return new BaseQueryBuilder({ |
| 181 | ...this.query, |
| 182 | from, |
| 183 | }) as any |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Union multiple independent source streams in one query. |