Show:

Exposes API's to get count of the number of times that X is not NULL in a group. The count(*) function (with no arguments) returns the total number of rows in the group.

Methods

and

(
  • column
)
ICountClause

Used to specify AND condition between where clause.

Parameters:

  • column String

    Name of column on which condition need to be specified.

Returns:

ICountClause:

ICountClause Interface.

column

(
  • column
)
ICount

Used to provide name of column for which count will be calculated.

Parameters:

  • column String

    Name of column.

Returns:

ICount:

ICount Interface.

execute

() Object

Used to get count, this method should be called in last to calculate count.

Returns:

Object:

Return count.

executeAsync

(
  • callback
)

Used to get count asynchronous, this method should be called in last to calculate count.

Parameters:

  • callback Callback

    Request Callback

groupBy

(
  • columns
)
ICount

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:

ICount:

ICount Interface.

having

(
  • column
)
ICountClause

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:

ICountClause:

ICountClause Interface.

havingClause

(
  • havingClause
)
ICount

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

Parameters:

  • havingClause String

    Where clause.

Returns:

ICount:

ICount Interface.

or

(
  • column
)
ICountClause

Used to specify OR condition between where clause.

Parameters:

  • column String

    Name of column on which condition need to be specified.

Returns:

ICountClause:

ICountClause Interface.

where

(
  • column
)
ICountClause

Column name of which condition will be specified.

Parameters:

  • column String

    Name of column.

Returns:

ICountClause:

ICountClause Interface.

whereClause

(
  • whereClause
)
ICount

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

Parameters:

  • whereClause String

    Manually created where clause.

Returns:

ICount:

ICount Interface.