0 关注者

接口 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/yiisoft/yii2/blob/master/framework/db/ExpressionBuilderInterface.php

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

公共方法

隐藏继承的方法

方法 描述 定义于
build() 该方法从 $expression 构建原始 SQL,该 SQL 将不会被额外转义或引用。 yii\db\ExpressionBuilderInterface

方法详情

隐藏继承的方法

build() 公共抽象方法

该方法从 $expression 构建原始 SQL,该 SQL 将不会被额外转义或引用。

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

要构建的表达式。

$params array

绑定参数。

返回 string

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

                public function build(ExpressionInterface $expression, array &$params = []);