Show:

Exposes API's to get tuples from table based on information provided.

Methods

and

(
  • column
)
ISelectClause

Used to specify AND condition between where clause.

Parameters:

  • column String

    Name of column on which condition need to be specified.

Returns:

ISelectClause:

ISelectClause Interface.

ascendingOrderBy

(
  • columns
)
ISelect

Used to specify ORDER BY ASC keyword to sort the result-set in ascending order.

Parameters:

  • columns String

    Name of columns which need to be sorted.

Returns:

ISelect:

ISelect Interface.

columns

(
  • column
)
ISelect

Used to provide name of columns only for which data will be fetched.

Parameters:

  • column Array

    Name of columns.

Returns:

ISelect:

ISelect Interface.

descendingOrderBy

(
  • columns
)
ISelect

Used to specify ORDER BY DESC keyword to sort the result-set in descending order.

Parameters:

  • columns String

    Name of columns which need to be sorted.

Returns:

ISelect:

ISelect Interface.

distinct

() ICount

Used to specify DISTINCT condition.

Returns:

ICount:

ICount Interface.

execute

() Object

Used to get tuples, this method should be called in last to get tuples from table.

Returns:

Object:

Return array of model objects.

executeAsync

(
  • callback
)

Used to get tuples asynchronous, this method should be called in last to get tuples from table.

Parameters:

  • callback Callback

    Request Callback

groupBy

(
  • columns
)
ISelect

Used to specify GROUP BY statement in conjunction with the aggregate functions to group the result-set by one or more columns.

Parameters:

  • columns Array

    Name of columns.

Returns:

ISelect:

ISelect Interface.

having

(
  • column
)
ISelectClause

Used to specify HAVING clause to SQL because the WHERE keyword could not be used with aggregate functions.

Parameters:

  • column String

    Name of column on which condition need to be applied.

Returns:

ISelectClause:

ISelectClause Interface.

havingClause

(
  • havingClause
)
ISelect

Used to provide manually created Where clause, instead of using API's.

Parameters:

  • havingClause String

    Where clause.

Returns:

ISelect:

ISelect Interface.

limit

(
  • limit
)
ISelect

Used to specify the range of data need to fetch from table.

Parameters:

Returns:

ISelect:

ISelect Interface.

or

(
  • column
)
ISelectClause

Used to specify OR condition between where clause.

Parameters:

  • column String

    Name of column on which condition need to be specified.

Returns:

ISelectClause:

ISelectClause Interface.

orderBy

(
  • columns
)
ISelect

Used to specify ORDER BY keyword to sort the result-set.

Parameters:

  • columns String

    Name of columns which need to be sorted.

Returns:

ISelect:

ISelect Interface.

where

(
  • column
)
ISelectClause

Column name of which condition will be specified.

Parameters:

  • column String

    Name of column.

Returns:

ISelectClause:

ISelectClause Interface.

whereClause

(
  • whereClause
)
ISelect

Used to provide manually created Where clause, instead of using API's.

Parameters:

  • whereClause String

    Manually created where clause.

Returns:

ISelect:

ISelect Interface.