File

src/api/core/queries/baseQuery.ts

Description

Base class for SELECT, INSERT, UPDATE and DELETE queries. Implements fields to be returned and execute method (things that shared for all query types)

Can't be instantiated directly, must be extended by the all kinds of queries

Extends

Observable

Example

Index

Methods

Methods

Public fields
fields(fields: Array)

Select the fields to be returned at the response that represent the affected data Aggregation functions can be provided as an object: { fn: aggFn, col: string }

Parameters :
Name Type Optional Description
fields Array<Extract | IAggField> No

fields names or aggregation object

Public fields
fields(...fields: Array)
Parameters :
Name Type Optional
fields Array<Extract | IAggField> No
Public fields
fields(field: K | IAggField, ...fields: Array)
Type parameters :
  • K
Parameters :
Name Type Optional
field K | IAggField<T> No
fields Array<K | IAggField> No

result-matching ""

    No results matching ""