Skip to content
PHP Ecosystem
Explore

PdoValueBuilder

API reference › yii › db › PdoValueBuilder

classyii\db\PdoValueBuilder
ImplementsExpressionBuilderInterface
Since2.0.14
Sourceframework/db/PdoValueBuilder.php

Class PdoValueBuilder builds object of the PdoValue expression class.

MethodDescriptionDefined by
build()Method builds the raw SQL from the $expression that will not be additionally escaped or quoted.PdoValueBuilder
ConstantValueDescriptionDefined by
PARAM_PREFIX':pv'PdoValueBuilder
public function build(yii\db\ExpressionInterface $expression, array &$params = []): string

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

Parameters

ParameterTypeDescription
$expressionExpressionInterfaceThe expression to be built.
$paramsarrayThe binding parameters.

Returns

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