QueryExpressionBuilder
API reference › yii › db › QueryExpressionBuilder
Class QueryExpressionBuilder is used internally to build Query object
using unified QueryBuilder expression building interface.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$queryBuilder protected | QueryBuilder | Default: null. | ExpressionBuilderTrait |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | ExpressionBuilderTrait constructor. | ExpressionBuilderTrait |
build() | Method builds the raw SQL from the $expression that will not be additionally escaped or quoted. | QueryExpressionBuilder |
Method details
Section titled “Method details”build()
Section titled “build() ”public function build(yii\db\ExpressionInterface|yii\db\Query $expression, array &$params = []): stringMethod builds the raw SQL from the $expression that will not be additionally escaped or quoted.
Parameters
| Parameter | Type | Description |
|---|---|---|
$expression | ExpressionInterface|Query | The expression to be built. |
$params | array | The binding parameters. |
Returns
string: The raw SQL that will not be additionally escaped or quoted.