OrderBuilder
Description
Builder that lets you construct an object that sets a specific order in a condition to be used in OrderClause.
Methods
asc( condition: string | number | boolean | Date | Expression<ConditionalOrExpressionToken> ): OrderConditionSets the condition to have an ascending order.
Parameters
| Name | Type | Description |
|---|---|---|
| string | number | boolean | Date | Expression<ConditionalOrExpressionToken> | Condition to be in ascending order. |
desc( condition: string | number | boolean | Date | Expression<ConditionalOrExpressionToken> ): OrderConditionSets the condition to have an descending order.
Parameters
| Name | Type | Description |
|---|---|---|
| string | number | boolean | Date | Expression<ConditionalOrExpressionToken> | Condition to be in descending order. |
OrderBuilder
Description
Constant with the utils for OrderBuilder objects.
Methods
createFrom<C extends Container<any>, O extends object>( container: C, object: O ): O & OrderBuilderFactory function that allows to crete a OrderBuilder from the object provided.
Parameters
| Name | Type | Description |
|---|---|---|
| C | The related container with the data for the | |
| O | The base base from where to create the |
Returns
The OrderBuilder statement created from the object provided.