ISelect Class
Exposes API's to get tuples from table based on information provided.
Item Index
Methods
and
-
column
Used to specify AND condition between where clause.
Parameters:
-
column
StringName of column on which condition need to be specified.
Returns:
ISelectClause Interface.
ascendingOrderBy
-
columns
Used to specify ORDER BY ASC keyword to sort the result-set in ascending order.
Parameters:
-
columns
StringName of columns which need to be sorted.
Returns:
ISelect Interface.
columns
-
column
Used to provide name of columns only for which data will be fetched.
Parameters:
-
column
ArrayName of columns.
Returns:
ISelect Interface.
descendingOrderBy
-
columns
Used to specify ORDER BY DESC keyword to sort the result-set in descending order.
Parameters:
-
columns
StringName of columns which need to be sorted.
Returns:
ISelect Interface.
execute
()
Object
Used to get tuples, this method should be called in last to get tuples from table.
Returns:
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
CallbackRequest Callback
groupBy
-
columns
Used to specify GROUP BY statement in conjunction with the aggregate functions to group the result-set by one or more columns.
Parameters:
-
columns
ArrayName of columns.
Returns:
ISelect Interface.
having
-
column
Used to specify HAVING clause to SQL because the WHERE keyword could not be used with aggregate functions.
Parameters:
-
column
StringName of column on which condition need to be applied.
Returns:
ISelectClause Interface.
havingClause
-
havingClause
Used to provide manually created Where clause, instead of using API's.
Parameters:
-
havingClause
StringWhere clause.
Returns:
ISelect Interface.
limit
-
limit
Used to specify the range of data need to fetch from table.
Parameters:
-
limit
StringLIMIT of data.
Returns:
ISelect Interface.
or
-
column
Used to specify OR condition between where clause.
Parameters:
-
column
StringName of column on which condition need to be specified.
Returns:
ISelectClause Interface.
orderBy
-
columns
Used to specify ORDER BY keyword to sort the result-set.
Parameters:
-
columns
StringName of columns which need to be sorted.
Returns:
ISelect Interface.
where
-
column
Column name of which condition will be specified.
Parameters:
-
column
StringName of column.
Returns:
ISelectClause Interface.