Skip to main content

Query

@webda/ql


Interface: Query

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

Represent a full Query

Properties​

aggregation?​

optional aggregation?: AggregationQuery

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

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


assignments?​

optional assignments?: Assignment[]

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

Assignments of an UPDATE SET


continuationToken?​

optional continuationToken?: string

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

Offset value


fields?​

optional fields?: string[]

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

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


filter​

filter: Expression

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

Filtering part of the expression


limit?​

optional limit?: number

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

Limit value


orderBy?​

optional orderBy?: OrderBy[]

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

Order by clause


type​

type: QueryType

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

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:859

Get the string representation of the query

Returns​

string