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 constructor. yii\db\ExpressionBuilderTrait
build() Method builds the raw SQL from the $expression that will not be additionally escaped or quoted. 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 方法

Method builds the raw SQL from the $expression that will not be additionally escaped or quoted.

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

The expression to be built

$params array

The binding parameters.

return string

The raw SQL that will not be additionally escaped or quoted.

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 \yii\db\pgsql\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