Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TsQ

Hierarchy

  • TsQ

Index

Constructors

constructor

  • new TsQ(): TsQ

Properties

Private _computed

_computed: any

Private _from

_from: any

Private _groupby

_groupby: string

Private _method

_method: string

Private _orderby

_orderby: Stack<OrderClause>

Private _select

_select: string[]

Private _where

_where: any

Methods

fetch

  • fetch(): any[]

Private fromProcess

  • fromProcess(): this
  • Gets the data from class based on decorator configuration.

    Returns this

Private groupByProcess

  • groupByProcess(): this
  • Groups data by provided groups list

    Returns this

group_by

  • group_by(field: string): TsQ

Private orderByProcess

  • orderByProcess(): this

order_by

  • order_by(field: string, direction?: string): TsQ
  • Parameters

    • field: string
    • Default value direction: string = "asc"

    Returns TsQ

select

  • select(...fields: any[]): TsQ

Private selectProcess

  • selectProcess(): this
  • Filters on provided fields list

    Returns this

where

  • where(f: function): TsQ
  • Parameters

    • f: function
        • (e: any): boolean
        • Parameters

          • e: any

          Returns boolean

    Returns TsQ

Private whereProcess

  • whereProcess(): this
  • Filters data according to the calback provided in "where" clause.

    Returns this

Static from

  • from(from: any): TsQ

Generated using TypeDoc