PdoValueBuilder
API reference › yii › db › PdoValueBuilder
Class PdoValueBuilder builds object of the PdoValue expression class.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
build() | Method builds the raw SQL from the $expression that will not be additionally escaped or quoted. | PdoValueBuilder |
Constants
Section titled “Constants”| Constant | Value | Description | Defined by |
|---|---|---|---|
PARAM_PREFIX | ':pv' | PdoValueBuilder |
Method details
Section titled “Method details”build()
Section titled “build() ”public function build(yii\db\ExpressionInterface $expression, array &$params = []): stringMethod builds the raw SQL from the $expression that will not be additionally escaped or quoted.
Parameters
| Parameter | Type | Description |
|---|---|---|
$expression | ExpressionInterface | The expression to be built. |
$params | array | The binding parameters. |
Returns
string: The raw SQL that will not be additionally escaped or quoted.