Skip to main content

Query

@webda/ql


Interface: Query

Defined in: packages/ql/src/query.ts:831

Represent a full Query

Properties​

aggregation?​

optional aggregation?: AggregationQuery

Defined in: packages/ql/src/query.ts:863

Aggregation of a SELECT … GROUP BY or a SELECT with aggregate functions


assignments?​

optional assignments?: Assignment[]

Defined in: packages/ql/src/query.ts:859

Assignments of an UPDATE SET


continuationToken?​

optional continuationToken?: string

Defined in: packages/ql/src/query.ts:843

Offset value


fields?​

optional fields?: string[]

Defined in: packages/ql/src/query.ts:855

Field list of an explicit SELECT f1, f2; undefined means every field


filter​

filter: Expression

Defined in: packages/ql/src/query.ts:835

Filtering part of the expression


limit?​

optional limit?: number

Defined in: packages/ql/src/query.ts:839

Limit value


orderBy?​

optional orderBy?: OrderBy[]

Defined in: packages/ql/src/query.ts:847

Order by clause


type​

type: QueryType

Defined in: packages/ql/src/query.ts:851

Statement type: SELECT for a plain filter query (an implicit SELECT of every field) and an explicit SELECT

Methods​

toString()​

toString(): string

Defined in: packages/ql/src/query.ts:867

Get the string representation of the query

Returns​

string