没有命名空间的类 yii yii\base yii\behaviors yii\caching yii\captcha yii\console yii\console\controllers yii\console\widgets yii\data yii\db yii\db\conditions yii\db\cubrid yii\db\cubrid\conditions yii\db\mssql yii\db\mssql\conditions yii\db\mysql yii\db\oci yii\db\oci\conditions yii\db\pgsql yii\db\sqlite yii\db\sqlite\conditions yii\di yii\filters yii\filters\auth yii\grid yii\helpers yii\i18n yii\log yii\mail yii\mutex yii\rbac yii\rest yii\test yii\validators yii\web yii\widgets

Interface yii\db\ExpressionBuilderInterface

实现yii\db\ExpressionBuilder, yii\db\PdoValueBuilder, yii\db\QueryExpressionBuilder, yii\db\conditions\BetweenColumnsConditionBuilder, yii\db\conditions\BetweenConditionBuilder, yii\db\conditions\ConjunctionConditionBuilder, yii\db\conditions\ExistsConditionBuilder, yii\db\conditions\HashConditionBuilder, yii\db\conditions\InConditionBuilder, yii\db\conditions\LikeConditionBuilder, yii\db\conditions\NotConditionBuilder, yii\db\conditions\SimpleConditionBuilder, yii\db\cubrid\conditions\LikeConditionBuilder, yii\db\mssql\conditions\InConditionBuilder, yii\db\mssql\conditions\LikeConditionBuilder, yii\db\mysql\JsonExpressionBuilder, yii\db\oci\conditions\InConditionBuilder, yii\db\oci\conditions\LikeConditionBuilder, yii\db\pgsql\ArrayExpressionBuilder, yii\db\pgsql\JsonExpressionBuilder, yii\db\sqlite\conditions\InConditionBuilder, yii\db\sqlite\conditions\LikeConditionBuilder
可用版本自2.0.14
源码 https://github.com/yiichina/yii2/blob/api/framework/db/ExpressionBuilderInterface.php

接口 ExpressionBuilderInterface 旨在从实现 yii\db\ExpressionInterface 的特定表达式对象构建原始 SQL。

公共方法

隐藏继承的方法

方法描述被定义在
build() 通过 $expression 构建原始 SQL 的方法, 表达式将不会额外的转义或引用。 yii\db\ExpressionBuilderInterface

方法详情

build() 公共 抽象 方法

通过 $expression 构建原始 SQL 的方法, 表达式将不会额外的转义或引用。

public abstract string build(yii\db\ExpressionInterface $expression, array &$params = [])
$expression yii\db\ExpressionInterface

构建的表达式。

$params array

绑定参数。

return string

不会被额外转义或引用的原始 SQL。