Class yii\db\pgsql\ArrayExpressionBuilder

继承yii\db\pgsql\ArrayExpressionBuilder
实现yii\db\ExpressionBuilderInterface
Uses Traitsyii\db\ExpressionBuilderTrait
可用自版本2.0.14
源代码 https://github.com/yiisoft/yii2/blob/master/framework/db/pgsql/ArrayExpressionBuilder.php

Class ArrayExpressionBuilder builds yii\db\ArrayExpression for PostgreSQL DBMS.

公共方法

隐藏继承的方法

方法描述定义在
__construct() ExpressionBuilderTrait 构造函数. yii\db\ExpressionBuilderTrait
build() 方法从 $expression 构建原始 SQL, 不会额外对其进行转义或引用. yii\db\pgsql\ArrayExpressionBuilder

受保护的方法

隐藏继承的方法

方法描述定义在
buildPlaceholders() Builds placeholders array out of $expression values yii\db\pgsql\ArrayExpressionBuilder
buildSubqueryArray() Build an array expression from a subquery SQL. yii\db\pgsql\ArrayExpressionBuilder
getTypehint() yii\db\pgsql\ArrayExpressionBuilder
typecastValue() Casts $value to use in $expression yii\db\pgsql\ArrayExpressionBuilder

方法详情

build() public 方法

方法从 $expression 构建原始 SQL, 不会额外对其进行转义或引用.

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

The expression to be built

$params array

绑定的参数.

return string

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

buildPlaceholders() protected 方法

Builds placeholders array out of $expression values

protected array buildPlaceholders ( yii\db\ExpressionInterface $expression, &$params )
$expression yii\db\ExpressionInterface|yii\db\ArrayExpression
$params array

The binding parameters.

buildSubqueryArray() protected 方法

Build an array expression from a subquery SQL.

protected string buildSubqueryArray ( $sql, yii\db\ArrayExpression $expression )
$sql string

The subquery SQL.

$expression yii\db\ArrayExpression
return string

The subquery array expression.

getTypehint() protected 方法

protected string getTypehint ( yii\db\ArrayExpression $expression )
$expression yii\db\ArrayExpression
return string

The typecast expression based on type.

typecastValue() protected 方法

Casts $value to use in $expression

protected yii\db\JsonExpression typecastValue ( yii\db\ArrayExpression $expression, $value )
$expression yii\db\ArrayExpression
$value mixed