ExpressionBuilderInterface
API reference › yii › db › ExpressionBuilderInterface
Implemented by 16 types
ExpressionBuilderPdoValueBuilderQueryExpressionBuilderyii\db\conditions\BetweenColumnsConditionBuilderyii\db\conditions\BetweenConditionBuilderyii\db\conditions\ConjunctionConditionBuilderyii\db\conditions\ExistsConditionBuilderyii\db\conditions\HashConditionBuilderyii\db\conditions\InConditionBuilderyii\db\conditions\LikeConditionBuilderyii\db\conditions\NotConditionBuilderyii\db\conditions\SimpleConditionBuilderyii\db\mysql\JsonExpressionBuilderyii\db\oci\LobValueBuilderyii\db\pgsql\ArrayExpressionBuilderyii\db\pgsql\JsonExpressionBuilder
Interface ExpressionBuilderInterface is designed to build raw SQL from specific expression
objects that implement ExpressionInterface.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
build() abstract | Method builds the raw SQL from the $expression that will not be additionally escaped or quoted. | ExpressionBuilderInterface |
Method details
Section titled “Method details”build()
Section titled “build() ”abstract public function build(yii\db\ExpressionInterface $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 | The expression to be built. |
$params | array | The binding parameters. |
Returns
string: The raw SQL that will not be additionally escaped or quoted.