QBResult
Last updated
Last updated
Type | Name | Summary |
---|---|---|
Type | Name | Summary |
---|---|---|
Get/set the distinct flag for the query.
Type Boolean
Sample
Get query builder parent table clause, this may be a query or a join clause.
Type QBSelect
Sample
Get query builder parent.
Type QBSelect
Sample
Add an aggregate to the query result.
Parameters
QBColumn aggregate the aggregate to add to result
Returns: QBResult
Sample
Add an aggregate with alias to the query result.
Parameters
Returns: QBResult
Sample
Add a column to the query result.
Parameters
QBColumn column column to add to result
Returns: QBResult
Sample
Add a column with alias to the query result.
Parameters
Returns: QBResult
Sample
Add all columns from a query or a join to the query result.
Parameters
QBColumns columns columns to add to result
Returns: QBResult
Sample
Add a function result to the query result.
Parameters
QBColumn func the function to add to the result
Returns: QBResult
Sample
Add a function with alias result to the query result.
Parameters
Returns: QBResult
Sample
Add a case searched expression to the query result.
Parameters
QBColumn qcase The searched case expression.
Returns: QBResult
Sample
Add a case searched expression with alias to the query result.
Parameters
Returns: QBResult
Sample
Add the tables' primary pk columns in alphabetical order to the query result.
Returns: QBResult
Sample
Add a query to the query result.
Parameters
QBSelect query query to add to result
Returns: QBResult
Sample
Add a query with alias to the query result.
Parameters
Returns: QBResult
Sample
Add a custom subquery to the query result.
Parameters
Returns: QBResult
Sample
Add a custom subquery with alias to the query result.
Parameters
Returns: QBResult
Sample
Add a value to the query result.
Parameters
Object value value add to result
Returns: QBResult
Sample
Add a value with an alias to the query result.
Parameters
Returns: QBResult
Sample
Clear the columns in the query result.
Returns: QBResult
Sample
returns an array with all the columns that will be in the select of this query. can return empty array. Then the system will auto append the pk when this query is used.
Returns: Array An array of QBColumn thats in the select of this query.
Sample
remove a column from the query result.
Parameters
QBColumn column column to remove from the result
Returns: QBResult
Sample
Remove a column by name from the query result.
Parameters
String name name or alias of column to remove from the result
Returns: QBResult
Sample
Get/set the distinct flag for the query.
Get query builder parent table clause, this may be a query or a join clause.
Get query builder parent.
Add an aggregate to the query result.
Add an aggregate with alias to the query result.
Add a column to the query result.
Add a column with alias to the query result.
Add all columns from a query or a join to the query result.
Add a function result to the query result.
Add a function with alias result to the query result.
Add a case searched expression to the query result.
Add a case searched expression with alias to the query result.
Add the tables' primary pk columns in alphabetical order to the query result.
Add a query to the query result.
Add a query with alias to the query result.
Add a custom subquery to the query result.
Add a custom subquery with alias to the query result.
Add a value to the query result.
Add a value with an alias to the query result.
Clear the columns in the query result.
returns an array with all the columns that will be in the select of this query.
remove a column from the query result.
Remove a column by name from the query result.