Interface: SelectQuery
Interface: SelectQuery
Section titled “Interface: SelectQuery”Defined in: core/src/query/ast.ts:120
Properties
Section titled “Properties”
readonlykind:"select"
Defined in: core/src/query/ast.ts:121
readonlyfrom:string
Defined in: core/src/query/ast.ts:124
Name of the primary FROM source. If fromSubquery is set, this is
the subquery’s alias; otherwise it’s the user table name.
fromSubquery?
Section titled “fromSubquery?”
readonlyoptionalfromSubquery?:SelectQuery
Defined in: core/src/query/ast.ts:131
When set, the FROM clause is a nested SELECT aliased as from. The
inner query is executed first (client) or emitted as (inner) AS alias (server), and downstream WHERE / joins / projection reference
the alias as if it were a table.
readonlyjoins: readonlyJoin[]
Defined in: core/src/query/ast.ts:132
projection
Section titled “projection”
readonlyprojection:Projection
Defined in: core/src/query/ast.ts:133
where?
Section titled “where?”
readonlyoptionalwhere?:Expr
Defined in: core/src/query/ast.ts:134
groupBy?
Section titled “groupBy?”
readonlyoptionalgroupBy?: readonlyColRef[]
Defined in: core/src/query/ast.ts:135
having?
Section titled “having?”
readonlyoptionalhaving?:Expr
Defined in: core/src/query/ast.ts:136
orderBy
Section titled “orderBy”
readonlyorderBy: readonlyOrdering[]
Defined in: core/src/query/ast.ts:137
limit?
Section titled “limit?”
readonlyoptionallimit?:number
Defined in: core/src/query/ast.ts:138
offset?
Section titled “offset?”
readonlyoptionaloffset?:number
Defined in: core/src/query/ast.ts:139