IGroupConcat Class
/private/var/user/Documents/App/Hybrid/JavaScript/Siminov/Database/Design/IGroupConcat.js:58
Parent Module: Database
Exposes API's to get group concat that returns a string which is the concatenation of all non-NULL values of X. If parameter Y is present then it is used as the separator between instances of X. A comma (",") is used as the separator if Y is omitted. The order of the concatenated elements is arbitrary.
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:
IGroupConcatClause Interface.
column
-
column
Used to provide name of column for which average will be calculated.
Parameters:
-
column
StringName of column.
Returns:
IGroupConcat Interface.
delimiter
-
delimiter
Used to specify separator if Y is omitted.
Parameters:
-
delimiter
StringDelimiter.
Returns:
IGroupConcat Interface.
execute
()
Object
Used to get group concat, this method should be called in last to calculate group concat.
Returns:
Return group concat.
executeAsync
-
callback
Used to get group concat asynchronous, this method should be called in last to calculate group concat.
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:
IGroupConcat 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:
IGroupConcatClause Interface.
havingClause
-
havingClause
Used to provide manually created Where clause, instead of using API's.
Parameters:
-
havingClause
StringWhere clause.
Returns:
IGroupConcat Interface.
or
-
column
Used to specify OR condition between where clause.
Parameters:
-
column
StringName of column on which condition need to be specified.
Returns:
IGroupConcatClause Interface.
where
-
column
Column name of which condition will be specified.
Parameters:
-
column
StringName of column.
Returns:
IGroupConcatClause Interface.
whereClause
-
whereClause
Used to provide manually created Where clause, instead of using API's.
Parameters:
-
whereClause
StringManually created where clause.
Returns:
IGroupConcat Interface.